⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 adapternode.html

📁 jsXe 是java简单的XML编辑器。 它使用的Swing工具
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/sourceforge/jsxe/dom/AdapterNode.html#removeAttribute(java.lang.String)">removeAttribute</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;attr)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes an attribute by name.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/sourceforge/jsxe/dom/AdapterNode.html#removeAttributeAt(int)">removeAttributeAt</A></B>(int&nbsp;index)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes an attribute at the given index.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/sourceforge/jsxe/dom/AdapterNode.html#serializeToString()">serializeToString</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Serializes this Node to a string based on the owning XMLDocument's properties.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/sourceforge/jsxe/dom/AdapterNode.html#setAttribute(java.lang.String, java.lang.String)">setAttribute</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;name,             <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;value)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets an attribute of this node.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/sourceforge/jsxe/dom/AdapterNode.html#setNodeName(java.lang.String)">setNodeName</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;newValue)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the name of the node.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/sourceforge/jsxe/dom/AdapterNode.html#setNodeValue(java.lang.String)">setNodeValue</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;str)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the value of the node.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="index(net.sourceforge.jsxe.dom.AdapterNode)"><!-- --></A><H3>index</H3><PRE>public int <B>index</B>(<A HREF="../../../../net/sourceforge/jsxe/dom/AdapterNode.html" title="class in net.sourceforge.jsxe.dom">AdapterNode</A>&nbsp;child)</PRE><DL><DD><p>Returns the index of the given AdapterNode if it is a child.</p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>child</CODE> - the child node of this node<DT><B>Returns:</B><DD>the index where the child is located. -1 if the AdapterNode is         not a child</DL></DD></DL><HR><A NAME="child(int)"><!-- --></A><H3>child</H3><PRE>public <A HREF="../../../../net/sourceforge/jsxe/dom/AdapterNode.html" title="class in net.sourceforge.jsxe.dom">AdapterNode</A> <B>child</B>(int&nbsp;index)</PRE><DL><DD><p>Gets the child node at the given index.</p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the requested node<DT><B>Returns:</B><DD>an AdapterNode representing the node at the given index,         null if the index is out of bounds</DL></DD></DL><HR><A NAME="childCount()"><!-- --></A><H3>childCount</H3><PRE>public int <B>childCount</B>()</PRE><DL><DD><p>Gets the number of children that this node has.</p><P><DD><DL><DT><B>Returns:</B><DD>the number of children of this node</DL></DD></DL><HR><A NAME="getNodeName()"><!-- --></A><H3>getNodeName</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getNodeName</B>()</PRE><DL><DD><p>Gets the name of this node.</p><P><DD><DL><DT><B>Returns:</B><DD>the name of the node</DL></DD></DL><HR><A NAME="setNodeName(java.lang.String)"><!-- --></A><H3>setNodeName</H3><PRE>public void <B>setNodeName</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;newValue)                 throws org.w3c.dom.DOMException</PRE><DL><DD><p>Sets the name of the node. Only element nodes are currently supported.</p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>newValue</CODE> - the new name for this node<DT><B>Throws:</B><DD><CODE>org.w3c.dom.DOMException</CODE> - INVALID_CHARACTER_ERR: Raised if the specified name                      contains an illegal character.</DL></DD></DL><HR><A NAME="getNodeValue()"><!-- --></A><H3>getNodeValue</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getNodeValue</B>()</PRE><DL><DD><p>Gets the current value if this node.</p><P><DD><DL><DT><B>Returns:</B><DD>the current value associated with this node</DL></DD></DL><HR><A NAME="setNodeValue(java.lang.String)"><!-- --></A><H3>setNodeValue</H3><PRE>public void <B>setNodeValue</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;str)                  throws org.w3c.dom.DOMException</PRE><DL><DD><p>Sets the value of the node.</p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>str</CODE> - the new value of the node<DT><B>Throws:</B><DD><CODE>org.w3c.dom.DOMException</CODE> - NO_MODIFICATION_ALLOWED_ERR: Raised when the node is                      readonly.<DD><CODE>org.w3c.dom.DOMException</CODE> - DOMSTRING_SIZE_ERR: Raised when it would return                      more characters than fit in a DOMString variable on                      the implementation platform.</DL></DD></DL><HR><A NAME="getNodeType()"><!-- --></A><H3>getNodeType</H3><PRE>public short <B>getNodeType</B>()</PRE><DL><DD><p>Gets the type of the node specified in the W3C Node interface.</p><P><DD><DL><DT><B>Returns:</B><DD>the node type</DL></DD></DL><HR><A NAME="getParentNode()"><!-- --></A><H3>getParentNode</H3><PRE>public <A HREF="../../../../net/sourceforge/jsxe/dom/AdapterNode.html" title="class in net.sourceforge.jsxe.dom">AdapterNode</A> <B>getParentNode</B>()</PRE><DL><DD><p>Gets the parent AdapterNode object.</p><P><DD><DL><DT><B>Returns:</B><DD>the AdapterNode that is the parent of this node</DL></DD></DL><HR><A NAME="getAttributes()"><!-- --></A><H3>getAttributes</H3><PRE>public org.w3c.dom.NamedNodeMap <B>getAttributes</B>()</PRE><DL><DD><p>Gets the attributes associated with this node.</p><P><DD><DL><DT><B>Returns:</B><DD>a map of the attributes associated with this node.         <code>null</code> if this is not an element node</DL></DD></DL><HR><A NAME="addAdapterNode(java.lang.String, java.lang.String, short, int)"><!-- --></A><H3>addAdapterNode</H3><PRE>public <A HREF="../../../../net/sourceforge/jsxe/dom/AdapterNode.html" title="class in net.sourceforge.jsxe.dom">AdapterNode</A> <B>addAdapterNode</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;name,                                  <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;value,                                  short&nbsp;type,                                  int&nbsp;index)                           throws org.w3c.dom.DOMException</PRE><DL><DD><p>Adds a new child to this node given the node name, value, and type.</p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the new child node<DD><CODE>value</CODE> - the value of the new child node<DD><CODE>type</CODE> - the type of the new child node as specified by the W3C Node             interface<DT><B>Returns:</B><DD>the new child that was created<DT><B>Throws:</B><DD><CODE>org.w3c.dom.DOMException</CODE> - INVALID_CHARACTER_ERR: Raised if the specified name                      or value contains an illegal character.<DD><CODE>org.w3c.dom.DOMException</CODE> - NOT_SUPPORTED_ERR: Raised if the node type is not                      supported.<DD><CODE>org.w3c.dom.DOMException</CODE> - HIERARCHY_REQUEST_ERR: Raised if this node is of a                      type that does not allow children of the type of the                      newChild node, or if the node to append is one of this                      node's ancestors or this node itself.<DD><CODE>org.w3c.dom.DOMException</CODE> - WRONG_DOCUMENT_ERR: Raised if newChild was created                      from a different document than the one that created                      this node.<DD><CODE>org.w3c.dom.DOMException</CODE> - NO_MODIFICATION_ALLOWED_ERR: Raised if this node is                      readonly or if the previous parent of the node being                      inserted is readonly.</DL></DD></DL><HR><A NAME="addAdapterNode(net.sourceforge.jsxe.dom.AdapterNode)"><!-- --></A><H3>addAdapterNode</H3><PRE>public <A HREF="../../../../net/sourceforge/jsxe/dom/AdapterNode.html" title="class in net.sourceforge.jsxe.dom">AdapterNode</A> <B>addAdapterNode</B>(<A HREF="../../../../net/sourceforge/jsxe/dom/AdapterNode.html" title="class in net.sourceforge.jsxe.dom">AdapterNode</A>&nbsp;node)                           throws org.w3c.dom.DOMException</PRE><DL><DD>Adds an already existing AdapterNode to this node as a child. The node is added after all child nodes that this node contains.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>node</CODE> - the node to be added.<DT><B>Returns:</B><DD>a reference to the node that was added.<DT><B>Throws:</B><DD><CODE>org.w3c.dom.DOMException</CODE> - HIERARCHY_REQUEST_ERR: Raised if this node is of a                      type that does not allow children of the type of the

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -