1545 lines
85 KiB
HTML
1545 lines
85 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<title>mxGraph: com::mxgraph::mxObjectCodec Class Reference</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
|
|
</head>
|
|
<body>
|
|
<!-- Generated by Doxygen 1.6.3 -->
|
|
<div class="navigation" id="top">
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
|
<li><a href="dirs.html"><span>Directories</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="annotated.html"><span>Class List</span></a></li>
|
|
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
|
<li><a href="functions.html"><span>Class Members</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="navpath"><b>com</b>::<b>mxgraph</b>::<a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html">mxObjectCodec</a>
|
|
</div>
|
|
</div>
|
|
<div class="contents">
|
|
<h1>com::mxgraph::mxObjectCodec Class Reference</h1><!-- doxytag: class="com::mxgraph::mxObjectCodec" -->
|
|
<p>Generic codec for C# objects. See below for a detailed description of the encoding/decoding scheme. Note: Since booleans are numbers in JavaScript, all boolean values are encoded into 1 for true and 0 for false.
|
|
<a href="#_details">More...</a></p>
|
|
<div class="dynheader">
|
|
Inheritance diagram for com::mxgraph::mxObjectCodec:</div>
|
|
<div class="dynsection">
|
|
<div class="center">
|
|
<img src="classcom_1_1mxgraph_1_1mxObjectCodec.png" usemap="#com::mxgraph::mxObjectCodec_map" alt=""/>
|
|
<map id="com::mxgraph::mxObjectCodec_map" name="com::mxgraph::mxObjectCodec_map">
|
|
<area href="classcom_1_1mxgraph_1_1mxCellCodec.html" alt="com::mxgraph::mxCellCodec" shape="rect" coords="0,56,205,80"/>
|
|
<area href="classcom_1_1mxgraph_1_1mxModelCodec.html" alt="com::mxgraph::mxModelCodec" shape="rect" coords="215,56,420,80"/>
|
|
<area href="classcom_1_1mxgraph_1_1mxStylesheetCodec.html" alt="com::mxgraph::mxStylesheetCodec" shape="rect" coords="430,56,635,80"/>
|
|
</map>
|
|
</div>
|
|
</div>
|
|
|
|
<p><a href="classcom_1_1mxgraph_1_1mxObjectCodec-members.html">List of all members.</a></p>
|
|
<table border="0" cellpadding="0" cellspacing="0">
|
|
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#abbddb3957b955b41d4fbcd6e63bbb42d">mxObjectCodec</a> (Object <a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#a24bdd53b1c6af9edab63a37cbd52533e">template</a>)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructs a new codec for the specified template object. <a href="#abbddb3957b955b41d4fbcd6e63bbb42d"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#a38b4f86b0ffb810f94f1864c6f386a8f">mxObjectCodec</a> (Object <a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#a24bdd53b1c6af9edab63a37cbd52533e">template</a>, string[] <a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#ae4e8b08be01d379f6a84cfe28235b94e">exclude</a>, string[] <a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#abef71a12c34e290072c9a9daeea34429">idrefs</a>, Dictionary< string, string > <a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#a8cf9b1b0429e7340911953750d361cf1">mapping</a>)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructs a new codec for the specified template object. The variables in the optional exclude array are ignored by the codec. Variables in the optional idrefs array are turned into references in the XML. The optional mapping may be used to map from variable names to XML attributes. <a href="#a38b4f86b0ffb810f94f1864c6f386a8f"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">string </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#a62ea0063541fd986ab33a1b098780abf">GetName</a> ()</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the name used for the nodenames and lookup of the codec when classes are encoded and nodes are decoded. For classes to work with this the codec registry automatically adds an alias for the classname if that is different than what this returns. The default implementation returns the classname of the template class. <a href="#a62ea0063541fd986ab33a1b098780abf"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#a58410c644edac27eb89acd3f3be8c6b3">IsExcluded</a> (Object obj, string attr, Object value, bool write)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns true if the given attribute is to be ignored by the codec. This implementation returns true if the given fieldname is in exclude. <a href="#a58410c644edac27eb89acd3f3be8c6b3"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#a369877eb840c88cb3b321c93e22a373b">IsReference</a> (Object obj, string attr, Object value, bool write)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns true if the given fieldname is to be treated as a textual reference (ID). This implementation returns true if the given fieldname is in idrefs. <a href="#a369877eb840c88cb3b321c93e22a373b"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual XmlNode </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#aa8e373e16bb59c00a573b1bebe1a3934">Encode</a> (<a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> enc, Object obj)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Encodes the specified object and returns a node representing then given object. Calls beforeEncode after creating the node and afterEncode with the resulting node after processing. Enc is a reference to the calling encoder. It is used to encode complex objects and create references. <a href="#aa8e373e16bb59c00a573b1bebe1a3934"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual Object </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#aa58c9db1a76eca9a93196b3d618560a5">BeforeEncode</a> (<a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> enc, Object obj, XmlNode node)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Hook for subclassers to pre-process the object before encoding. This returns the input object. The return value of this function is used in encode to perform the default encoding into the given node. <a href="#aa58c9db1a76eca9a93196b3d618560a5"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual XmlNode </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#a190fb06cd2ebe7953a6766f71f0f4a5d">AfterEncode</a> (<a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> enc, Object obj, XmlNode node)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Hook for subclassers to Receive-process the node for the given object after encoding and return the Receive-processed node. This implementation returns the input node. The return value of this method is returned to the encoder from encode. <a href="#a190fb06cd2ebe7953a6766f71f0f4a5d"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual Object </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#add2542d39061256bd5652925cd14ed99">Decode</a> (<a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> dec, XmlNode node)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Parses the given node into the object or returns a new object representing the given node. <a href="#add2542d39061256bd5652925cd14ed99"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual Object </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#a121ba530f191fa675cef1199783d3b4c">Decode</a> (<a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> dec, XmlNode node, Object into)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Parses the given node into the object or returns a new object representing the given node. Dec is a reference to the calling decoder. It is used to decode complex objects and resolve references. If a node has an id attribute then the object cache is checked for the object. If the object is not yet in the cache then it is constructed using the constructor of template and cached in <a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html#a9f983ce7275a1005de496ee15093a6f0" title="Maps from IDs to objects.">mxCodec.objects</a>. This implementation decodes all attributes and childs of a node according to the following rules:</p>
|
|
<ul>
|
|
<li>If the variable name is in exclude or if the attribute name is "id" or "as" then it is ignored.</li>
|
|
<li>If the variable name is in idrefs then mxCodec.getObject is used to replace the reference with an object.</li>
|
|
<li>The variable name is mapped using a reverse mapping.</li>
|
|
<li>If the value has a child node, then the codec is used to create a child object with the variable name taken from the "as" attribute.</li>
|
|
<li>If the object is an array and the variable name is empty then the value or child object is appended to the array.</li>
|
|
<li>If an add child has no value or the object is not an array then the child text content is evaluated using mxUtils.eval. If no object exists for an ID in idrefs a warning is issued using mxLog.warn. Returns the resulting object that represents the given XML node or the configured given object. </li>
|
|
</ul>
|
|
<a href="#a121ba530f191fa675cef1199783d3b4c"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#afd7f23ec8879f314b0729ac866201683">ProcessInclude</a> (<a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> dec, XmlNode node, Object into)</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual XmlNode </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#aef2e78e13b8dd5895ac272a0542ce4f2">BeforeDecode</a> (<a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> dec, XmlNode node, Object obj)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Hook for subclassers to pre-process the node for the specified object and return the node to be used for further processing by decode. The object is created based on the template in the calling method and is never null. This implementation returns the input node. The return value of this function is used in decode to perform the default decoding into the given object. <a href="#aef2e78e13b8dd5895ac272a0542ce4f2"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual Object </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#af52418b7e8af59ebf7892725dfda0c99">AfterDecode</a> (<a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> dec, XmlNode node, Object obj)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Hook for subclassers to Receive-process the object after decoding. This implementation returns the given object without any changes. The return value of this method is returned to the decoder from decode. <a href="#af52418b7e8af59ebf7892725dfda0c99"></a><br/></td></tr>
|
|
<tr><td colspan="2"><h2>Protected Member Functions</h2></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual Object </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#a9916f40c70806d0f2dbce90d2bc0a228">CloneTemplate</a> (XmlNode node)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a new instance of the template object for representing the given node. <a href="#a9916f40c70806d0f2dbce90d2bc0a228"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#ade4c4a85d7ed2162f9566c8df931d250">EncodeObject</a> (<a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> enc, Object obj, XmlNode node)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Encodes the value of each member in then given obj into the given node using encodeFields and encodeElements. <a href="#ade4c4a85d7ed2162f9566c8df931d250"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#afe487cf09d38efd8cbfbbf92810419fa">EncodeFields</a> (<a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> enc, Object obj, XmlNode node)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Encodes the members of the given object into the given node. <a href="#afe487cf09d38efd8cbfbbf92810419fa"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#ac044bc0648d29bbde6a826c22ca84a1b">EncodeElements</a> (<a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> enc, Object obj, XmlNode node)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Encodes the child objects of arrays, dictionaries and enumerables. <a href="#ac044bc0648d29bbde6a826c22ca84a1b"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#ac0fe160b3b14184206fb33abda5b6c20">EncodeValue</a> (<a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> enc, Object obj, string fieldname, Object value, XmlNode node)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Converts the given value according to the mappings and id-refs in this codec and uses writeAttribute to write the attribute into the given node. <a href="#ac0fe160b3b14184206fb33abda5b6c20"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#af3ef76d421c61dfe849f6e09252fc630">IsPrimitiveValue</a> (Object value)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns true if the given object is a primitive value. <a href="#af3ef76d421c61dfe849f6e09252fc630"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="addeb537a505b24d8fd813e4d05df4595"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::WriteAttribute" ref="addeb537a505b24d8fd813e4d05df4595" args="(mxCodec enc, Object obj, string attr, Object value, XmlNode node)" -->
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#addeb537a505b24d8fd813e4d05df4595">WriteAttribute</a> (<a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> enc, Object obj, string attr, Object value, XmlNode node)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Writes the given value into node using writePrimitiveAttribute or writeComplexAttribute depending on the type of the value. <br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#a7831f956126ef0b5da4920824d9b9bb5">WritePrimitiveAttribute</a> (<a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> enc, Object obj, string attr, Object value, XmlNode node)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Writes the given value as an attribute of the given node. <a href="#a7831f956126ef0b5da4920824d9b9bb5"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#abc3bef1feb53dc34ed9e8ba93da5edd1">WriteComplexAttribute</a> (<a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> enc, Object obj, string attr, Object value, XmlNode node)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Writes the given value as a child node of the given node. <a href="#abc3bef1feb53dc34ed9e8ba93da5edd1"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual Object </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#a668ec4f16b4018010b78dfac5da202a1">ConvertValueToXml</a> (Object value)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Converts true to "1" and false to "0". All other values are ignored. <a href="#a668ec4f16b4018010b78dfac5da202a1"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual Object </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#af10ffcb1ec0726e3ce520e450eddd1a9">ConvertValueFromXml</a> (Type type, Object value)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Converts XML attribute values to object of the given type. <a href="#af10ffcb1ec0726e3ce520e450eddd1a9"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">string </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#a7a33b05e10c507d6d47fcf1c152e51d4">GetAttributeName</a> (string fieldname)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the XML node attribute name for the given C# field name. That is, it returns the mapping of the field name. <a href="#a7a33b05e10c507d6d47fcf1c152e51d4"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">string </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#a234002bf9a84ccc51210cbf2744d1dbf">GetFieldName</a> (string attributename)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the C# field name for the given XML attribute name. That is, it returns the reverse mapping of the attribute name. <a href="#a234002bf9a84ccc51210cbf2744d1dbf"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">Object </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#ab4c4b9a8a57ef55d3923da107289a05e">GetFieldValue</a> (Object obj, string name)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the value of the field with the specified name in the specified object instance. <a href="#ab4c4b9a8a57ef55d3923da107289a05e"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#a66dc2344eab9b42aac159cdd3967cd8c">SetFieldValue</a> (Object obj, string name, Object value)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the value of the field with the specified name in the specified object instance. <a href="#a66dc2344eab9b42aac159cdd3967cd8c"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#a8d19152cfe1b7a65a613ecc823c0ff6c">DecodeNode</a> (<a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> dec, XmlNode node, Object obj)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Calls decodeAttributes and decodeChildren for the given node. <a href="#a8d19152cfe1b7a65a613ecc823c0ff6c"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#a6c43995dfa09e94c15237bb5bcb956bd">DecodeAttributes</a> (<a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> dec, XmlNode node, Object obj)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Decodes all attributes of the given node using decodeAttribute. <a href="#a6c43995dfa09e94c15237bb5bcb956bd"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#a3995ca8eb8b49ea3369ce78784da6886">DecodeAttribute</a> (<a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> dec, XmlNode attr, Object obj)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Reads the given attribute into the specified object. <a href="#a3995ca8eb8b49ea3369ce78784da6886"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#a0fae9f4253f6b903b13a0342d27b654d">DecodeChildren</a> (<a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> dec, XmlNode node, Object obj)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Reads the given attribute into the specified object. <a href="#a0fae9f4253f6b903b13a0342d27b654d"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#a26402e6fab4b83efae915a1d241a9139">DecodeChild</a> (<a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> dec, XmlNode child, Object obj)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Reads the specified child into the given object. <a href="#a26402e6fab4b83efae915a1d241a9139"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">Object </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#a414f565a39689bd929124c2003dd41aa">GetFieldTemplate</a> (Object obj, String fieldname, XmlNode child)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the template instance for the given field. This returns the value of the field, null if the value is an array or an empty collection if the value is a collection. The value is then used to populate the field for a new instance. For strongly typed languages it may be required to override this to return the correct collection instance based on the encoded child. <a href="#a414f565a39689bd929124c2003dd41aa"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#a400b8c95027f3e65c8f6bb7365346e31">AddObjectValue</a> (Object obj, String fieldname, Object value, Object <a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#a24bdd53b1c6af9edab63a37cbd52533e">template</a>)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the decoded child node as a value of the given object. If the object is a map, then the value is added with the given fieldname as a key. If the fieldname is not empty, then setFieldValue is called or else, if the object is a collection, the value is added to the collection. For strongly typed languages it may be required to override this with the correct code to add an entry to an object. <a href="#a400b8c95027f3e65c8f6bb7365346e31"></a><br/></td></tr>
|
|
<tr><td colspan="2"><h2>Protected Attributes</h2></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">Object </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#a24bdd53b1c6af9edab63a37cbd52533e">template</a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Holds the template object associated with this codec. <a href="#a24bdd53b1c6af9edab63a37cbd52533e"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">List< string > </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#ae4e8b08be01d379f6a84cfe28235b94e">exclude</a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Array containing the variable names that should be ignored by the codec. <a href="#ae4e8b08be01d379f6a84cfe28235b94e"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">List< string > </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#abef71a12c34e290072c9a9daeea34429">idrefs</a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Array containing the variable names that should be turned into or converted from references. See mxCodec.getId and mxCodec.getObject. <a href="#abef71a12c34e290072c9a9daeea34429"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">Dictionary< string, string > </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#a8cf9b1b0429e7340911953750d361cf1">mapping</a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Maps from from fieldnames to XML attribute names. <a href="#a8cf9b1b0429e7340911953750d361cf1"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">Dictionary< string, string > </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#a897b6935339cdb9a47f12b5f926b58f9">reverse</a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Maps from from XML attribute names to fieldnames. <a href="#a897b6935339cdb9a47f12b5f926b58f9"></a><br/></td></tr>
|
|
<tr><td colspan="2"><h2>Properties</h2></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">Object </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#a6dbad90a78d8e5d2bc3dd6fbec6d4841">Template</a><code> [get]</code></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the template object associated with this codec. <a href="#a6dbad90a78d8e5d2bc3dd6fbec6d4841"></a><br/></td></tr>
|
|
</table>
|
|
<hr/><a name="_details"></a><h2>Detailed Description</h2>
|
|
<p>Generic codec for C# objects. See below for a detailed description of the encoding/decoding scheme. Note: Since booleans are numbers in JavaScript, all boolean values are encoded into 1 for true and 0 for false. </p>
|
|
<hr/><h2>Constructor & Destructor Documentation</h2>
|
|
<a class="anchor" id="abbddb3957b955b41d4fbcd6e63bbb42d"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::mxObjectCodec" ref="abbddb3957b955b41d4fbcd6e63bbb42d" args="(Object template)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">com::mxgraph::mxObjectCodec::mxObjectCodec </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>template</em></td>
|
|
<td> ) </td>
|
|
<td><code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Constructs a new codec for the specified template object. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>template</em> </td><td>Prototypical instance of the object to be encoded/decoded.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a38b4f86b0ffb810f94f1864c6f386a8f"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::mxObjectCodec" ref="a38b4f86b0ffb810f94f1864c6f386a8f" args="(Object template, string[] exclude, string[] idrefs, Dictionary< string, string > mapping)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">com::mxgraph::mxObjectCodec::mxObjectCodec </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>template</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">string[] </td>
|
|
<td class="paramname"> <em>exclude</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">string[] </td>
|
|
<td class="paramname"> <em>idrefs</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Dictionary< string, string > </td>
|
|
<td class="paramname"> <em>mapping</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Constructs a new codec for the specified template object. The variables in the optional exclude array are ignored by the codec. Variables in the optional idrefs array are turned into references in the XML. The optional mapping may be used to map from variable names to XML attributes. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>template</em> </td><td>Prototypical instance of the object to be encoded/decoded.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>exclude</em> </td><td>Optional array of fieldnames to be ignored.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>idrefs</em> </td><td>Optional array of fieldnames to be converted to/from references.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>mapping</em> </td><td>Optional mapping from field- to attributenames.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/><h2>Member Function Documentation</h2>
|
|
<a class="anchor" id="a400b8c95027f3e65c8f6bb7365346e31"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::AddObjectValue" ref="a400b8c95027f3e65c8f6bb7365346e31" args="(Object obj, String fieldname, Object value, Object template)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void com::mxgraph::mxObjectCodec::AddObjectValue </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>obj</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">String </td>
|
|
<td class="paramname"> <em>fieldname</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>value</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>template</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Sets the decoded child node as a value of the given object. If the object is a map, then the value is added with the given fieldname as a key. If the fieldname is not empty, then setFieldValue is called or else, if the object is a collection, the value is added to the collection. For strongly typed languages it may be required to override this with the correct code to add an entry to an object. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="af52418b7e8af59ebf7892725dfda0c99"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::AfterDecode" ref="af52418b7e8af59ebf7892725dfda0c99" args="(mxCodec dec, XmlNode node, Object obj)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual Object com::mxgraph::mxObjectCodec::AfterDecode </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> </td>
|
|
<td class="paramname"> <em>dec</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">XmlNode </td>
|
|
<td class="paramname"> <em>node</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>obj</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Hook for subclassers to Receive-process the object after decoding. This implementation returns the given object without any changes. The return value of this method is returned to the decoder from decode. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>dec</em> </td><td>Codec that controls the decoding process.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>node</em> </td><td>XML node to be decoded.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>obj</em> </td><td>Object that represents the default decoding.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the result of the decoding process.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a190fb06cd2ebe7953a6766f71f0f4a5d"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::AfterEncode" ref="a190fb06cd2ebe7953a6766f71f0f4a5d" args="(mxCodec enc, Object obj, XmlNode node)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual XmlNode com::mxgraph::mxObjectCodec::AfterEncode </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> </td>
|
|
<td class="paramname"> <em>enc</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>obj</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">XmlNode </td>
|
|
<td class="paramname"> <em>node</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Hook for subclassers to Receive-process the node for the given object after encoding and return the Receive-processed node. This implementation returns the input node. The return value of this method is returned to the encoder from encode. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>enc</em> </td><td>Codec that controls the encoding process.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>obj</em> </td><td>Object to be encoded.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>node</em> </td><td>XML node that represents the default encoding.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the resulting node of the encoding.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aef2e78e13b8dd5895ac272a0542ce4f2"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::BeforeDecode" ref="aef2e78e13b8dd5895ac272a0542ce4f2" args="(mxCodec dec, XmlNode node, Object obj)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual XmlNode com::mxgraph::mxObjectCodec::BeforeDecode </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> </td>
|
|
<td class="paramname"> <em>dec</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">XmlNode </td>
|
|
<td class="paramname"> <em>node</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>obj</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Hook for subclassers to pre-process the node for the specified object and return the node to be used for further processing by decode. The object is created based on the template in the calling method and is never null. This implementation returns the input node. The return value of this function is used in decode to perform the default decoding into the given object. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>dec</em> </td><td>Codec that controls the decoding process.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>node</em> </td><td>XML node to be decoded.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>obj</em> </td><td>Object to encode the node into.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the node used for the default decoding.</dd></dl>
|
|
|
|
<p>Reimplemented in <a class="el" href="classcom_1_1mxgraph_1_1mxModelCodec.html#a64513ab4228e528bfd216c08def3ec6c">com::mxgraph::mxModelCodec</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aa58c9db1a76eca9a93196b3d618560a5"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::BeforeEncode" ref="aa58c9db1a76eca9a93196b3d618560a5" args="(mxCodec enc, Object obj, XmlNode node)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual Object com::mxgraph::mxObjectCodec::BeforeEncode </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> </td>
|
|
<td class="paramname"> <em>enc</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>obj</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">XmlNode </td>
|
|
<td class="paramname"> <em>node</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Hook for subclassers to pre-process the object before encoding. This returns the input object. The return value of this function is used in encode to perform the default encoding into the given node. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>enc</em> </td><td>Codec that controls the encoding process.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>obj</em> </td><td>Object to be encoded.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>node</em> </td><td>XML node to encode the object into.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the object to be encoded by the default encoding.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a9916f40c70806d0f2dbce90d2bc0a228"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::CloneTemplate" ref="a9916f40c70806d0f2dbce90d2bc0a228" args="(XmlNode node)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual Object com::mxgraph::mxObjectCodec::CloneTemplate </td>
|
|
<td>(</td>
|
|
<td class="paramtype">XmlNode </td>
|
|
<td class="paramname"> <em>node</em></td>
|
|
<td> ) </td>
|
|
<td><code> [inline, protected, virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns a new instance of the template object for representing the given node. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>node</em> </td><td>XML node that the object is going to represent.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns a new template instance.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="af10ffcb1ec0726e3ce520e450eddd1a9"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::ConvertValueFromXml" ref="af10ffcb1ec0726e3ce520e450eddd1a9" args="(Type type, Object value)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual Object com::mxgraph::mxObjectCodec::ConvertValueFromXml </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Type </td>
|
|
<td class="paramname"> <em>type</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>value</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, protected, virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Converts XML attribute values to object of the given type. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a668ec4f16b4018010b78dfac5da202a1"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::ConvertValueToXml" ref="a668ec4f16b4018010b78dfac5da202a1" args="(Object value)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual Object com::mxgraph::mxObjectCodec::ConvertValueToXml </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>value</em></td>
|
|
<td> ) </td>
|
|
<td><code> [inline, protected, virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Converts true to "1" and false to "0". All other values are ignored. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a121ba530f191fa675cef1199783d3b4c"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::Decode" ref="a121ba530f191fa675cef1199783d3b4c" args="(mxCodec dec, XmlNode node, Object into)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual Object com::mxgraph::mxObjectCodec::Decode </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> </td>
|
|
<td class="paramname"> <em>dec</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">XmlNode </td>
|
|
<td class="paramname"> <em>node</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>into</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Parses the given node into the object or returns a new object representing the given node. Dec is a reference to the calling decoder. It is used to decode complex objects and resolve references. If a node has an id attribute then the object cache is checked for the object. If the object is not yet in the cache then it is constructed using the constructor of template and cached in <a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html#a9f983ce7275a1005de496ee15093a6f0" title="Maps from IDs to objects.">mxCodec.objects</a>. This implementation decodes all attributes and childs of a node according to the following rules:</p>
|
|
<ul>
|
|
<li>If the variable name is in exclude or if the attribute name is "id" or "as" then it is ignored.</li>
|
|
<li>If the variable name is in idrefs then mxCodec.getObject is used to replace the reference with an object.</li>
|
|
<li>The variable name is mapped using a reverse mapping.</li>
|
|
<li>If the value has a child node, then the codec is used to create a child object with the variable name taken from the "as" attribute.</li>
|
|
<li>If the object is an array and the variable name is empty then the value or child object is appended to the array.</li>
|
|
<li>If an add child has no value or the object is not an array then the child text content is evaluated using mxUtils.eval. If no object exists for an ID in idrefs a warning is issued using mxLog.warn. Returns the resulting object that represents the given XML node or the configured given object. </li>
|
|
</ul>
|
|
</p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>dec</em> </td><td>Codec that controls the encoding process.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>node</em> </td><td>XML node to be decoded.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>into</em> </td><td>Optional objec to encode the node into.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the resulting object that represents the given XML node or the object given to the method as the into parameter.</dd></dl>
|
|
|
|
<p>Reimplemented in <a class="el" href="classcom_1_1mxgraph_1_1mxStylesheetCodec.html#a79090b06efe74f3805ec252138012431">com::mxgraph::mxStylesheetCodec</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="add2542d39061256bd5652925cd14ed99"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::Decode" ref="add2542d39061256bd5652925cd14ed99" args="(mxCodec dec, XmlNode node)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual Object com::mxgraph::mxObjectCodec::Decode </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> </td>
|
|
<td class="paramname"> <em>dec</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">XmlNode </td>
|
|
<td class="paramname"> <em>node</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Parses the given node into the object or returns a new object representing the given node. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>dec</em> </td><td>Codec that controls the encoding process.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>node</em> </td><td>XML node to be decoded.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the resulting object that represents the given XML node.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a3995ca8eb8b49ea3369ce78784da6886"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::DecodeAttribute" ref="a3995ca8eb8b49ea3369ce78784da6886" args="(mxCodec dec, XmlNode attr, Object obj)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void com::mxgraph::mxObjectCodec::DecodeAttribute </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> </td>
|
|
<td class="paramname"> <em>dec</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">XmlNode </td>
|
|
<td class="paramname"> <em>attr</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>obj</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Reads the given attribute into the specified object. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a6c43995dfa09e94c15237bb5bcb956bd"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::DecodeAttributes" ref="a6c43995dfa09e94c15237bb5bcb956bd" args="(mxCodec dec, XmlNode node, Object obj)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void com::mxgraph::mxObjectCodec::DecodeAttributes </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> </td>
|
|
<td class="paramname"> <em>dec</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">XmlNode </td>
|
|
<td class="paramname"> <em>node</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>obj</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Decodes all attributes of the given node using decodeAttribute. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a26402e6fab4b83efae915a1d241a9139"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::DecodeChild" ref="a26402e6fab4b83efae915a1d241a9139" args="(mxCodec dec, XmlNode child, Object obj)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void com::mxgraph::mxObjectCodec::DecodeChild </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> </td>
|
|
<td class="paramname"> <em>dec</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">XmlNode </td>
|
|
<td class="paramname"> <em>child</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>obj</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Reads the specified child into the given object. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a0fae9f4253f6b903b13a0342d27b654d"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::DecodeChildren" ref="a0fae9f4253f6b903b13a0342d27b654d" args="(mxCodec dec, XmlNode node, Object obj)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void com::mxgraph::mxObjectCodec::DecodeChildren </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> </td>
|
|
<td class="paramname"> <em>dec</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">XmlNode </td>
|
|
<td class="paramname"> <em>node</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>obj</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Reads the given attribute into the specified object. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a8d19152cfe1b7a65a613ecc823c0ff6c"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::DecodeNode" ref="a8d19152cfe1b7a65a613ecc823c0ff6c" args="(mxCodec dec, XmlNode node, Object obj)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void com::mxgraph::mxObjectCodec::DecodeNode </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> </td>
|
|
<td class="paramname"> <em>dec</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">XmlNode </td>
|
|
<td class="paramname"> <em>node</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>obj</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Calls decodeAttributes and decodeChildren for the given node. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aa8e373e16bb59c00a573b1bebe1a3934"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::Encode" ref="aa8e373e16bb59c00a573b1bebe1a3934" args="(mxCodec enc, Object obj)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual XmlNode com::mxgraph::mxObjectCodec::Encode </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> </td>
|
|
<td class="paramname"> <em>enc</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>obj</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Encodes the specified object and returns a node representing then given object. Calls beforeEncode after creating the node and afterEncode with the resulting node after processing. Enc is a reference to the calling encoder. It is used to encode complex objects and create references. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>enc</em> </td><td>Codec that controls the encoding process.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>obj</em> </td><td>Object to be encoded.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the resulting XML node that represents the given object.</dd></dl>
|
|
|
|
<p>Reimplemented in <a class="el" href="classcom_1_1mxgraph_1_1mxStylesheetCodec.html#a4a7f48050d530e5b64e7bc98de0eab0b">com::mxgraph::mxStylesheetCodec</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ac044bc0648d29bbde6a826c22ca84a1b"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::EncodeElements" ref="ac044bc0648d29bbde6a826c22ca84a1b" args="(mxCodec enc, Object obj, XmlNode node)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void com::mxgraph::mxObjectCodec::EncodeElements </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> </td>
|
|
<td class="paramname"> <em>enc</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>obj</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">XmlNode </td>
|
|
<td class="paramname"> <em>node</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Encodes the child objects of arrays, dictionaries and enumerables. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>enc</em> </td><td>Codec that controls the encoding process.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>obj</em> </td><td>Object whose child objects should be encoded.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>node</em> </td><td>XML node that contains the encoded object.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="afe487cf09d38efd8cbfbbf92810419fa"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::EncodeFields" ref="afe487cf09d38efd8cbfbbf92810419fa" args="(mxCodec enc, Object obj, XmlNode node)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void com::mxgraph::mxObjectCodec::EncodeFields </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> </td>
|
|
<td class="paramname"> <em>enc</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>obj</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">XmlNode </td>
|
|
<td class="paramname"> <em>node</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Encodes the members of the given object into the given node. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>enc</em> </td><td>Codec that controls the encoding process.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>obj</em> </td><td>Object whose fields should be encoded.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>node</em> </td><td>XML node that contains the encoded object.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ade4c4a85d7ed2162f9566c8df931d250"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::EncodeObject" ref="ade4c4a85d7ed2162f9566c8df931d250" args="(mxCodec enc, Object obj, XmlNode node)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual void com::mxgraph::mxObjectCodec::EncodeObject </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> </td>
|
|
<td class="paramname"> <em>enc</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>obj</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">XmlNode </td>
|
|
<td class="paramname"> <em>node</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, protected, virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Encodes the value of each member in then given obj into the given node using encodeFields and encodeElements. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>enc</em> </td><td>Codec that controls the encoding process.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>obj</em> </td><td>Object to be encoded.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>node</em> </td><td>XML node that contains the encoded object.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p>Reimplemented in <a class="el" href="classcom_1_1mxgraph_1_1mxModelCodec.html#abe01c87a42e5568047c44c78ba0b2a2d">com::mxgraph::mxModelCodec</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ac0fe160b3b14184206fb33abda5b6c20"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::EncodeValue" ref="ac0fe160b3b14184206fb33abda5b6c20" args="(mxCodec enc, Object obj, string fieldname, Object value, XmlNode node)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void com::mxgraph::mxObjectCodec::EncodeValue </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> </td>
|
|
<td class="paramname"> <em>enc</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>obj</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"> <em>fieldname</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>value</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">XmlNode </td>
|
|
<td class="paramname"> <em>node</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Converts the given value according to the mappings and id-refs in this codec and uses writeAttribute to write the attribute into the given node. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>enc</em> </td><td>Codec that controls the encoding process.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>obj</em> </td><td>Object whose member is going to be encoded.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>fieldname</em> </td><td></td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>Value of the property to be encoded.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>node</em> </td><td>XML node that contains the encoded object.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a7a33b05e10c507d6d47fcf1c152e51d4"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::GetAttributeName" ref="a7a33b05e10c507d6d47fcf1c152e51d4" args="(string fieldname)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">string com::mxgraph::mxObjectCodec::GetAttributeName </td>
|
|
<td>(</td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"> <em>fieldname</em></td>
|
|
<td> ) </td>
|
|
<td><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns the XML node attribute name for the given C# field name. That is, it returns the mapping of the field name. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a234002bf9a84ccc51210cbf2744d1dbf"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::GetFieldName" ref="a234002bf9a84ccc51210cbf2744d1dbf" args="(string attributename)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">string com::mxgraph::mxObjectCodec::GetFieldName </td>
|
|
<td>(</td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"> <em>attributename</em></td>
|
|
<td> ) </td>
|
|
<td><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns the C# field name for the given XML attribute name. That is, it returns the reverse mapping of the attribute name. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>attributename</em> </td><td>The attribute name to be mapped.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>String that represents the mapped field name.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a414f565a39689bd929124c2003dd41aa"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::GetFieldTemplate" ref="a414f565a39689bd929124c2003dd41aa" args="(Object obj, String fieldname, XmlNode child)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">Object com::mxgraph::mxObjectCodec::GetFieldTemplate </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>obj</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">String </td>
|
|
<td class="paramname"> <em>fieldname</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">XmlNode </td>
|
|
<td class="paramname"> <em>child</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns the template instance for the given field. This returns the value of the field, null if the value is an array or an empty collection if the value is a collection. The value is then used to populate the field for a new instance. For strongly typed languages it may be required to override this to return the correct collection instance based on the encoded child. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ab4c4b9a8a57ef55d3923da107289a05e"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::GetFieldValue" ref="ab4c4b9a8a57ef55d3923da107289a05e" args="(Object obj, string name)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">Object com::mxgraph::mxObjectCodec::GetFieldValue </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>obj</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"> <em>name</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns the value of the field with the specified name in the specified object instance. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a62ea0063541fd986ab33a1b098780abf"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::GetName" ref="a62ea0063541fd986ab33a1b098780abf" args="()" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">string com::mxgraph::mxObjectCodec::GetName </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td>
|
|
<td> ) </td>
|
|
<td><code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns the name used for the nodenames and lookup of the codec when classes are encoded and nodes are decoded. For classes to work with this the codec registry automatically adds an alias for the classname if that is different than what this returns. The default implementation returns the classname of the template class. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a58410c644edac27eb89acd3f3be8c6b3"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::IsExcluded" ref="a58410c644edac27eb89acd3f3be8c6b3" args="(Object obj, string attr, Object value, bool write)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual bool com::mxgraph::mxObjectCodec::IsExcluded </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>obj</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"> <em>attr</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>value</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"> <em>write</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns true if the given attribute is to be ignored by the codec. This implementation returns true if the given fieldname is in exclude. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>obj</em> </td><td>Object instance that contains the field.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>attr</em> </td><td>Fieldname of the field.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>Value of the field.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>write</em> </td><td>Boolean indicating if the field is being encoded or decoded. write is true if the field is being encoded, else it is being decoded.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns true if the given attribute should be ignored.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="af3ef76d421c61dfe849f6e09252fc630"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::IsPrimitiveValue" ref="af3ef76d421c61dfe849f6e09252fc630" args="(Object value)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool com::mxgraph::mxObjectCodec::IsPrimitiveValue </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>value</em></td>
|
|
<td> ) </td>
|
|
<td><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns true if the given object is a primitive value. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>Object that should be checked.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns true if the given object is a primitive value.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a369877eb840c88cb3b321c93e22a373b"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::IsReference" ref="a369877eb840c88cb3b321c93e22a373b" args="(Object obj, string attr, Object value, bool write)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual bool com::mxgraph::mxObjectCodec::IsReference </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>obj</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"> <em>attr</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>value</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"> <em>write</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns true if the given fieldname is to be treated as a textual reference (ID). This implementation returns true if the given fieldname is in idrefs. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>obj</em> </td><td>Object instance that contains the field.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>attr</em> </td><td>Fieldname of the field.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>Value of the field.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>write</em> </td><td>Boolean indicating if the field is being encoded or decoded. write is true if the field is being encoded, else it is being decoded.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns true if the given attribute should be handled as a reference.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="afd7f23ec8879f314b0729ac866201683"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::ProcessInclude" ref="afd7f23ec8879f314b0729ac866201683" args="(mxCodec dec, XmlNode node, Object into)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool com::mxgraph::mxObjectCodec::ProcessInclude </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> </td>
|
|
<td class="paramname"> <em>dec</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">XmlNode </td>
|
|
<td class="paramname"> <em>node</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>into</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>dec</em> </td><td>Codec that controls the encoding/decoding process.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>node</em> </td><td>XML node to be checked.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>into</em> </td><td>Optional object to pass-thru to the codec.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns true if the given node was processed as an include.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a66dc2344eab9b42aac159cdd3967cd8c"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::SetFieldValue" ref="a66dc2344eab9b42aac159cdd3967cd8c" args="(Object obj, string name, Object value)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void com::mxgraph::mxObjectCodec::SetFieldValue </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>obj</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"> <em>name</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>value</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Sets the value of the field with the specified name in the specified object instance. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="abc3bef1feb53dc34ed9e8ba93da5edd1"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::WriteComplexAttribute" ref="abc3bef1feb53dc34ed9e8ba93da5edd1" args="(mxCodec enc, Object obj, string attr, Object value, XmlNode node)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void com::mxgraph::mxObjectCodec::WriteComplexAttribute </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> </td>
|
|
<td class="paramname"> <em>enc</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>obj</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"> <em>attr</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>value</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">XmlNode </td>
|
|
<td class="paramname"> <em>node</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Writes the given value as a child node of the given node. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a7831f956126ef0b5da4920824d9b9bb5"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::WritePrimitiveAttribute" ref="a7831f956126ef0b5da4920824d9b9bb5" args="(mxCodec enc, Object obj, string attr, Object value, XmlNode node)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void com::mxgraph::mxObjectCodec::WritePrimitiveAttribute </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxCodec.html">mxCodec</a> </td>
|
|
<td class="paramname"> <em>enc</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>obj</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"> <em>attr</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>value</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">XmlNode </td>
|
|
<td class="paramname"> <em>node</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Writes the given value as an attribute of the given node. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/><h2>Member Data Documentation</h2>
|
|
<a class="anchor" id="ae4e8b08be01d379f6a84cfe28235b94e"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::exclude" ref="ae4e8b08be01d379f6a84cfe28235b94e" args="" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">List<string> <a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#ae4e8b08be01d379f6a84cfe28235b94e">com::mxgraph::mxObjectCodec::exclude</a><code> [protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Array containing the variable names that should be ignored by the codec. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="abef71a12c34e290072c9a9daeea34429"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::idrefs" ref="abef71a12c34e290072c9a9daeea34429" args="" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">List<string> <a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#abef71a12c34e290072c9a9daeea34429">com::mxgraph::mxObjectCodec::idrefs</a><code> [protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Array containing the variable names that should be turned into or converted from references. See mxCodec.getId and mxCodec.getObject. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a8cf9b1b0429e7340911953750d361cf1"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::mapping" ref="a8cf9b1b0429e7340911953750d361cf1" args="" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">Dictionary<string, string> <a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#a8cf9b1b0429e7340911953750d361cf1">com::mxgraph::mxObjectCodec::mapping</a><code> [protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Maps from from fieldnames to XML attribute names. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a897b6935339cdb9a47f12b5f926b58f9"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::reverse" ref="a897b6935339cdb9a47f12b5f926b58f9" args="" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">Dictionary<string, string> <a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#a897b6935339cdb9a47f12b5f926b58f9">com::mxgraph::mxObjectCodec::reverse</a><code> [protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Maps from from XML attribute names to fieldnames. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a24bdd53b1c6af9edab63a37cbd52533e"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::template" ref="a24bdd53b1c6af9edab63a37cbd52533e" args="" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">Object <a class="el" href="classcom_1_1mxgraph_1_1mxObjectCodec.html#a24bdd53b1c6af9edab63a37cbd52533e">com::mxgraph::mxObjectCodec::template</a><code> [protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Holds the template object associated with this codec. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/><h2>Property Documentation</h2>
|
|
<a class="anchor" id="a6dbad90a78d8e5d2bc3dd6fbec6d4841"></a><!-- doxytag: member="com::mxgraph::mxObjectCodec::Template" ref="a6dbad90a78d8e5d2bc3dd6fbec6d4841" args="" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">Object com::mxgraph::mxObjectCodec::Template<code> [get]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns the template object associated with this codec. </p>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the template object.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/>The documentation for this class was generated from the following file:<ul>
|
|
<li>src/io/mxObjectCodec.cs</li>
|
|
</ul>
|
|
</div>
|
|
<hr class="footer"/><address style="text-align: right;"><small>Generated on Fri May 25 10:15:53 2012 for mxGraph by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
|
|
</body>
|
|
</html>
|