DEE

数据交换


Document.Attribute

<p><strong>简要描述:</strong> </p> <ul> <li>com.seeyon.v3x.dee.Document.Attribute</li> <li>Attribute是Element元素上的属性</li> </ul> <pre><code> &amp;lt;table totalCount=&amp;quot;1000&amp;quot;&amp;gt; //totalCount就是Attribute ... &amp;lt;/table&amp;gt;</code></pre> <ul> <li>如何获取Attribute</li> </ul> <pre><code>document.getRootElement().getChild(&amp;quot;table&amp;quot;).getAttribute(&amp;quot;totalCount&amp;quot;);//可以获取table元素的名称为“totalCount”的Attribute对象</code></pre> <p><strong>方法列表</strong> </p> <table> <thead> <tr> <th>方法名称</th> <th>方法简介</th> </tr> </thead> <tbody> <tr> <td>String getName()</td> <td>获取Attribute对象的名称</td> </tr> <tr> <td>Object getValue()</td> <td>获取当前Attribute对象的值</td> </tr> <tr> <td>void setValue(Object value)</td> <td>给当前Attribute对象设置值</td> </tr> </tbody> </table> <hr /> <p><strong>方法签名:</strong> </p> <p><code>String getName()</code></p> <p><strong>简要描述:</strong> </p> <ul> <li>获取Attribute对象的名称</li> </ul> <p><strong>参数:</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th style="text-align: left;">说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">无</td> <td style="text-align: left;"></td> <td style="text-align: left;"></td> </tr> </tbody> </table> <p><strong>返回值说明</strong> </p> <table> <thead> <tr> <th style="text-align: left;">类型</th> <th style="text-align: left;">说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">String</td> <td style="text-align: left;">Attribute对象的名称</td> </tr> </tbody> </table> <p><strong>使用例子</strong></p> <pre><code>List&amp;lt;Attribute&amp;gt; list = document.getRootElement().getChild(&amp;quot;table&amp;quot;).getAttributes(); for (Attribute attribute:list){ attribute.getName(); }//可以获取table元素的所有属性的名称</code></pre> <p><strong>备注</strong> </p> <ul> <li>无</li> </ul> <hr /> <p><strong>方法签名:</strong> </p> <p><code>Object getValue()</code></p> <p><strong>简要描述:</strong> </p> <ul> <li>获取当前Attribute对象的值</li> </ul> <p><strong>参数:</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th style="text-align: left;">说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">无</td> <td style="text-align: left;"></td> <td style="text-align: left;"></td> </tr> </tbody> </table> <p><strong>返回值说明</strong> </p> <table> <thead> <tr> <th style="text-align: left;">类型</th> <th style="text-align: left;">说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">Object</td> <td style="text-align: left;">Attribute对象的值,类型为Object</td> </tr> </tbody> </table> <p><strong>使用例子</strong></p> <pre><code>document.getRootElement().getChild(&amp;quot;table&amp;quot;).getAttribute(&amp;quot;totalCount&amp;quot;).getValue();//可以获取table元素的名称为“totalCount”的Attribute对象的值</code></pre> <p><strong>备注</strong> </p> <ul> <li>无</li> </ul> <hr /> <p><strong>方法签名:</strong> </p> <p><code>void setValue(Object value)</code></p> <p><strong>简要描述:</strong> </p> <ul> <li>给当前Attribute对象设置值</li> </ul> <p><strong>参数:</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th style="text-align: left;">说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">value</td> <td style="text-align: left;">Object</td> <td style="text-align: left;">Attribute对象的值</td> </tr> </tbody> </table> <p><strong>返回值说明</strong> </p> <table> <thead> <tr> <th style="text-align: left;">类型</th> <th style="text-align: left;">说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">void</td> <td style="text-align: left;">没有返回值</td> </tr> </tbody> </table> <p><strong>使用例子</strong></p> <pre><code>document.getRootElement().getChild(&amp;quot;table&amp;quot;).getAttribute(&amp;quot;totalCount&amp;quot;).setValue(&amp;quot;500&amp;quot;);//将table元素的名称为“totalCount”的属性的值设置为“500”</code></pre> <p><strong>备注</strong> </p> <ul> <li>无</li> </ul>

页面列表

ITEM_HTML