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

📄 domxmlelement.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<DL></DL></DL><HR><A NAME="domNode"><!-- --></A><H3>domNode</H3><PRE>protected org.w3c.dom.Node <B>domNode</B></PRE><DL><DD>The DOM node for which this element is a proxy.<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="DOMXMLElement(net.jxta.impl.document.DOMXMLDocument, org.w3c.dom.Node)"><!-- --></A><H3>DOMXMLElement</H3><PRE>protected <B>DOMXMLElement</B>(<A HREF="../../../../net/jxta/impl/document/DOMXMLDocument.html" title="class in net.jxta.impl.document">DOMXMLDocument</A>&nbsp;root,                        org.w3c.dom.Node&nbsp;node)</PRE><DL><DD>Constructor for associating a DOM node with a StructuredDocument Element.<P><DT><B>Parameters:</B><DD><CODE>root</CODE> - the DOM not which is to be associated with this element.</DL><!-- ============ 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="getName()"><!-- --></A><H3>getName</H3><PRE>public java.lang.String <B>getName</B>()</PRE><DL><DD>Get the name associated with an element.<P><DD><DL><DT><B>Returns:</B><DD>A string containing the name of this element.</DL></DD></DL><HR><A NAME="getTextValue()"><!-- --></A><H3>getTextValue</H3><PRE>public java.lang.String <B>getTextValue</B>()</PRE><DL><DD>Get the value (if any) associated with an element.<P><DD><DL><DT><B>Returns:</B><DD>A string containing the value of this element, if any, otherwise null.</DL></DD></DL><HR><A NAME="getRoot()"><!-- --></A><H3>getRoot</H3><PRE>public <A HREF="../../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document">StructuredDocument</A> <B>getRoot</B>()</PRE><DL><DD>Get the root element of the hierarchy this element belongs to.<P><DD><DL><DT><B>Returns:</B><DD>StructuredDocument root of this element's hierarchy.</DL></DD></DL><HR><A NAME="getParent()"><!-- --></A><H3>getParent</H3><PRE>public <A HREF="../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A> <B>getParent</B>()</PRE><DL><DD>Get the parent of this element. If the element has not been inserted into  the Document then null is returned. If this element is the root of the  Document then it returns itself.<P><DD><DL><DT><B>Returns:</B><DD>Element parent of this element. If the element has no parent then null will be returned. If the element is the root Element of the hierarchy then it will return itself.</DL></DD></DL><HR><A NAME="appendChild(net.jxta.document.TextElement)"><!-- --></A><H3>appendChild</H3><PRE>public void <B>appendChild</B>(<A HREF="../../../../net/jxta/document/TextElement.html" title="interface in net.jxta.document">TextElement</A>&nbsp;element)</PRE><DL><DD>Add a child element to this element<P><DD><DL><DT><B>Parameters:</B><DD><CODE>element</CODE> - the element to be added as a child</DL></DD></DL><HR><A NAME="getChildren()"><!-- --></A><H3>getChildren</H3><PRE>public java.util.Enumeration <B>getChildren</B>()</PRE><DL><DD>Returns an enumeration of the immediate children of this element<P><DD><DL><DT><B>Returns:</B><DD>An enumeration containing all of the children of this element.</DL></DD></DL><HR><A NAME="getChildren(java.lang.String)"><!-- --></A><H3>getChildren</H3><PRE>public java.util.Enumeration <B>getChildren</B>(java.lang.String&nbsp;name)</PRE><DL><DD>Returns an enumeration of the immediate children of this element whose name match the specified string.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name which will be matched against.<DT><B>Returns:</B><DD>An enumeration containing all of the children of this element.</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(java.lang.Object&nbsp;element)</PRE><DL><DD>Tests two elements for equality. For the XML document the definition of equality is:    <p/><ul>    <li>the item compared against must be an XML Element.</li>    <li>The items must belong to the same document.</li>    <li>The items must have the same name.</li>    <li>The items must have the save textual value.</li> </ul><P><DD><DL><DT><B>Parameters:</B><DD><CODE>element</CODE> - the element to be compared against.<DT><B>Returns:</B><DD>true if the elements are equal</DL></DD></DL><HR><A NAME="getAssocNode()"><!-- --></A><H3>getAssocNode</H3><PRE>protected org.w3c.dom.Node <B>getAssocNode</B>()</PRE><DL><DD>Returns the DOM Node associated with this StructuredDocument element.<P><DD><DL><DT><B>Returns:</B><DD>Node    The DOM Node associated with this StructuredDocument element.</DL></DD></DL><HR><A NAME="addAttribute(java.lang.String, java.lang.String)"><!-- --></A><H3>addAttribute</H3><PRE>public java.lang.String <B>addAttribute</B>(java.lang.String&nbsp;name,                                     java.lang.String&nbsp;value)</PRE><DL><DD>Adds an attribute with the given name and value. Some implementations  may support only a single value for each distinct name. Others may  support multiple values for each name. If the value being provided  replaces some other value then that value is returned otherwise null  is returned.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - name of the attribute.<DD><CODE>value</CODE> - value for the attribute.<DT><B>Returns:</B><DD>String  containing previous value for this name if the value                  is being replaced otherwise null.</DL></DD></DL><HR><A NAME="addAttribute(net.jxta.document.Attribute)"><!-- --></A><H3>addAttribute</H3><PRE>public java.lang.String <B>addAttribute</B>(<A HREF="../../../../net/jxta/document/Attribute.html" title="class in net.jxta.document">Attribute</A>&nbsp;newAttrib)</PRE><DL><DD>Adds an attribute with the given name and value. Some implementations  may support only a single value for each distinct name. Others may  support multiple values for each name. If the value being provided  replaces some other value then that value is returned otherwise null  is returned.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>newAttrib</CODE> - new attribute.<DT><B>Returns:</B><DD>String  containing previous value for this name if the value                  is being replaced otherwise null.</DL></DD></DL><HR><A NAME="getAttributes()"><!-- --></A><H3>getAttributes</H3><PRE>public java.util.Enumeration <B>getAttributes</B>()</PRE><DL><DD>Returns an enumerations of the attributes assosicated with this object.  Each element is of type Attribute.<P><DD><DL><DT><B>Returns:</B><DD>Enumeration the attributes associated with this object.</DL></DD></DL><HR><A NAME="getAttribute(java.lang.String)"><!-- --></A><H3>getAttribute</H3><PRE>public <A HREF="../../../../net/jxta/document/Attribute.html" title="class in net.jxta.document">Attribute</A> <B>getAttribute</B>(java.lang.String&nbsp;name)</PRE><DL><DD>returns a single attribute which matches the name provided. If no such  named attribute exists then null is returned. For impelementations of  this interface which support multiple values for each name only the  first value will be returned. To access all values for a name you must  use getAttributes.<P><DD><DL><DT><B>Returns:</B><DD>Attribute the attributes matching the given name.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/DOMXMLElement.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>JXTA J2SE</EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../net/jxta/impl/document/DOMXMLDocument.html" title="class in net.jxta.impl.document"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../net/jxta/impl/document/LiteXMLDocument.html" title="class in net.jxta.impl.document"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="DOMXMLElement.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>

⌨️ 快捷键说明

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