<h1>com::mxgraph::mxCodecRegistry Class Reference</h1><!-- doxytag: class="com::mxgraph::mxCodecRegistry" -->
<p>Static class that acts as a global registry for codecs. See <aclass="el"href="classcom_1_1mxgraph_1_1mxCodec.html"title="XML codec for .NET object graphs. In order to resolve forward references when reading...">mxCodec</a> for an example of using this class.
<ahref="#_details">More...</a></p>
<p><ahref="classcom_1_1mxgraph_1_1mxCodecRegistry-members.html">List of all members.</a></p>
<tableborder="0"cellpadding="0"cellspacing="0">
<tr><tdcolspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Registers a new codec and associates the name of the template constructor in the codec with the codec object. Automatically creates an alias if the codename and the classname are not equal. <ahref="#acb79fb9e18c8c61e45eb1c698252a3e3"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Adds an alias for mapping a classname to a codecname. <ahref="#a2f52b12270d43eff03f58a059dbd9c67"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a codec that handles the given object, which can be an object instance or an XML node. <ahref="#a520ada8bb24cd8265fe269c0c9b57a5b"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Adds the given namespace to the list of known namespaces. <ahref="#ae9e172ad864056f7d8a6d3a3dee9a536"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Creates and returns a new instance for the given class name. <ahref="#a6f360b981789d155fdc8e6cefd895bca"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a class that corresponds to the given name. <ahref="#aa06091c0531ebe18f2c69225f0f419ae"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the name that identifies the codec associated with the given instance. The I/O system uses unqualified classnames, eg. for a com.mxgraph.model.mxCell this returns <aclass="el"href="classcom_1_1mxgraph_1_1mxCell.html"title="Cells are the elements of the graph model. They represent the state of the groups...">mxCell</a>. <ahref="#a4398e1da710fb68c428ad5314c02f560"></a><br/></td></tr>
<aclass="el"href="classcom_1_1mxgraph_1_1mxObjectCodec.html">mxObjectCodec</a>> </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="classcom_1_1mxgraph_1_1mxCodecRegistry.html#a86f950b4c672dfaff0656c22bf4a64e6">codecs</a> = new Dictionary<string, <aclass="el"href="classcom_1_1mxgraph_1_1mxObjectCodec.html">mxObjectCodec</a>>()</td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Maps from constructor names to codecs. <ahref="#a86f950b4c672dfaff0656c22bf4a64e6"></a><br/></td></tr>
<tr><tdclass="memItemLeft"align="right"valign="top">static Dictionary< string, string > </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="classcom_1_1mxgraph_1_1mxCodecRegistry.html#a052379e3e095439ba6dcc63e0c1df0ea">aliases</a> = new Dictionary<string, string>()</td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Maps from classnames to codecnames. <ahref="#a052379e3e095439ba6dcc63e0c1df0ea"></a><br/></td></tr>
<tr><tdclass="memItemLeft"align="right"valign="top">static List< string > </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="classcom_1_1mxgraph_1_1mxCodecRegistry.html#a705daf930467bc4a397c31a97f735449">namespaces</a> = new List<string>()</td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Holds the list of known namespaces. Packages are used to prefix short class names (eg. <aclass="el"href="classcom_1_1mxgraph_1_1mxCell.html"title="Cells are the elements of the graph model. They represent the state of the groups...">mxCell</a>) in XML markup. <ahref="#a705daf930467bc4a397c31a97f735449"></a><br/></td></tr>
<p>Static class that acts as a global registry for codecs. See <aclass="el"href="classcom_1_1mxgraph_1_1mxCodec.html"title="XML codec for .NET object graphs. In order to resolve forward references when reading...">mxCodec</a> for an example of using this class. </p>
<p>Returns the name that identifies the codec associated with the given instance. The I/O system uses unqualified classnames, eg. for a com.mxgraph.model.mxCell this returns <aclass="el"href="classcom_1_1mxgraph_1_1mxCell.html"title="Cells are the elements of the graph model. They represent the state of the groups...">mxCell</a>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>instance</em> </td><td>Instance whose node name should be returned.</td></tr>
</table>
</dd>
</dl>
<dlclass="return"><dt><b>Returns:</b></dt><dd>Returns a string that identifies the codec.</dd></dl>
<p>Registers a new codec and associates the name of the template constructor in the codec with the codec object. Automatically creates an alias if the codename and the classname are not equal. </p>
<tdclass="memname">List<string><aclass="el"href="classcom_1_1mxgraph_1_1mxCodecRegistry.html#a705daf930467bc4a397c31a97f735449">com::mxgraph::mxCodecRegistry::namespaces</a> = new List<string>()<code> [static, protected]</code></td>
</tr>
</table>
</div>
<divclass="memdoc">
<p>Holds the list of known namespaces. Packages are used to prefix short class names (eg. <aclass="el"href="classcom_1_1mxgraph_1_1mxCell.html"title="Cells are the elements of the graph model. They represent the state of the groups...">mxCell</a>) in XML markup. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>