<ahref="classcom_1_1mxgraph_1_1mxCodecRegistry-members.html">List of all members</a></div>
<divclass="headertitle">
<divclass="title">com.mxgraph.mxCodecRegistry Class Reference</div></div>
</div><!--header-->
<divclass="contents">
<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 files the XML d...">mxCodec</a> for an example of using this class.
<trclass="memdesc:a9d516650c7a2051664e84d4bf14bfbd6"><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="#a9d516650c7a2051664e84d4bf14bfbd6">More...</a><br/></td></tr>
<trclass="memdesc:afd970db748b0cd853cc0eb2049cd7824"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Adds an alias for mapping a classname to a codecname. <ahref="#afd970db748b0cd853cc0eb2049cd7824">More...</a><br/></td></tr>
<trclass="memdesc:a26a31214cadf077d0acb37f3f0295c6c"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a codec that handles the given object, which can be an object instance or an XML node. <ahref="#a26a31214cadf077d0acb37f3f0295c6c">More...</a><br/></td></tr>
<trclass="memdesc:a1961b193103166d15bbfd6c107c1a2ed"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Adds the given namespace to the list of known namespaces. <ahref="#a1961b193103166d15bbfd6c107c1a2ed">More...</a><br/></td></tr>
<trclass="memdesc:a637e9ce110219850251c576524b88831"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Creates and returns a new instance for the given class name. <ahref="#a637e9ce110219850251c576524b88831">More...</a><br/></td></tr>
<trclass="memdesc:a702f375499d93ae78d590b19a38ee3ea"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a class that corresponds to the given name. <ahref="#a702f375499d93ae78d590b19a38ee3ea">More...</a><br/></td></tr>
<trclass="memdesc:a26bc2c27208d17e5419e1964c73f1e92"><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, vertices and edges in a graph. ">mxCell</a>. <ahref="#a26bc2c27208d17e5419e1964c73f1e92">More...</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#aa9380d57601567bcf19923a7b0efc987">codecs</a> = new Dictionary<string, <aclass="el"href="classcom_1_1mxgraph_1_1mxObjectCodec.html">mxObjectCodec</a>>()</td></tr>
<trclass="memdesc:aa9380d57601567bcf19923a7b0efc987"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Maps from constructor names to codecs. <ahref="#aa9380d57601567bcf19923a7b0efc987">More...</a><br/></td></tr>
<trclass="memitem:a819a76478c91d2ff0e97c121eebb36d8"><tdclass="memItemLeft"align="right"valign="top">static Dictionary< string, string > </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="classcom_1_1mxgraph_1_1mxCodecRegistry.html#a819a76478c91d2ff0e97c121eebb36d8">aliases</a> = new Dictionary<string, string>()</td></tr>
<trclass="memdesc:a819a76478c91d2ff0e97c121eebb36d8"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Maps from classnames to codecnames. <ahref="#a819a76478c91d2ff0e97c121eebb36d8">More...</a><br/></td></tr>
<trclass="memitem:a7491a4a68281ea8667b2efe61d18781a"><tdclass="memItemLeft"align="right"valign="top">static List< string > </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="classcom_1_1mxgraph_1_1mxCodecRegistry.html#a7491a4a68281ea8667b2efe61d18781a">namespaces</a> = new List<string>()</td></tr>
<trclass="memdesc:a7491a4a68281ea8667b2efe61d18781a"><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, vertices and edges in a graph. ">mxCell</a>) in XML markup. <ahref="#a7491a4a68281ea8667b2efe61d18781a">More...</a><br/></td></tr>
<divclass="textblock"><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 files the XML d...">mxCodec</a> for an example of using this class. </p>
</div><h2class="groupheader">Member Function Documentation</h2>
<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, vertices and edges in a graph. ">mxCell</a>. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">instance</td><td>Instance whose node name should be returned.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</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>
<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, vertices and edges in a graph. ">mxCell</a>) in XML markup. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>