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

📄 litexmlelement.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.util.Enumeration</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/document/LiteXMLElement.html#getAttributes()">getAttributes</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an enumerations of the attributes assosicated with this object. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.util.Enumeration</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/document/LiteXMLElement.html#getChildren()">getChildren</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an enumeration of the immediate children of this element.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.util.Enumeration</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/document/LiteXMLElement.html#getChildren(java.lang.String)">getChildren</A></B>(java.lang.String&nbsp;name)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an enumeration of the immediate children of this element whose name match the specified string.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/document/LiteXMLElement.html#getName()">getName</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the name associated with an element.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/document/LiteXMLElement.html#getParent()">getParent</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the parent element of this element. If this Element has not been inserted into the Document then <code>null</code> is returned. If this element is the root element of the Document then it returns itself. ie., <code>this == this.getParent()</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document">StructuredDocument</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/document/LiteXMLElement.html#getRoot()">getRoot</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the root Element of the hierarchy this Element belongs to.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;<A HREF="../../../../net/jxta/impl/document/LiteXMLElement.tagRange.html" title="class in net.jxta.impl.document">LiteXMLElement.tagRange</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/document/LiteXMLElement.html#getTagRanges(java.lang.StringBuffer, java.lang.String, net.jxta.impl.document.LiteXMLElement.charRange)">getTagRanges</A></B>(java.lang.StringBuffer&nbsp;source,             java.lang.String&nbsp;tag,             <A HREF="../../../../net/jxta/impl/document/LiteXMLElement.charRange.html" title="class in net.jxta.impl.document">LiteXMLElement.charRange</A>&nbsp;range)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Given a source string, an optional tag and a range with in the source find either the tag specified or the next tag. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/document/LiteXMLElement.html#getTextValue()">getTextValue</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the value (if any) associated with an element.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/document/LiteXMLElement.html#getTextValue(boolean, boolean)">getTextValue</A></B>(boolean&nbsp;getEncoded,             boolean&nbsp;trim)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the value (if any) associated with an element.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/document/LiteXMLElement.html#printNice(java.io.Writer, int, boolean)">printNice</A></B>(java.io.Writer&nbsp;into,          int&nbsp;indent,          boolean&nbsp;recurse)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write the contents of this element and optionally its children. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/document/LiteXMLElement.html#toString()">toString</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <p/>A toString implementation for debugging purposes.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_net.jxta.impl.document.TextElementCommon"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class net.jxta.impl.document.<A HREF="../../../../net/jxta/impl/document/TextElementCommon.html" title="class in net.jxta.impl.document">TextElementCommon</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../net/jxta/impl/document/TextElementCommon.html#appendChild(net.jxta.document.Element)">appendChild</A>, <A HREF="../../../../net/jxta/impl/document/TextElementCommon.html#getChildren(java.lang.Object)">getChildren</A>, <A HREF="../../../../net/jxta/impl/document/TextElementCommon.html#getKey()">getKey</A>, <A HREF="../../../../net/jxta/impl/document/TextElementCommon.html#getValue()">getValue</A></CODE></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.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_net.jxta.document.Element"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface net.jxta.document.<A HREF="../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../net/jxta/document/Element.html#appendChild(net.jxta.document.Element)">appendChild</A>, <A HREF="../../../../net/jxta/document/Element.html#getChildren(java.lang.Object)">getChildren</A>, <A HREF="../../../../net/jxta/document/Element.html#getKey()">getKey</A>, <A HREF="../../../../net/jxta/document/Element.html#getValue()">getValue</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="doc"><!-- --></A><H3>doc</H3><PRE>protected <A HREF="../../../../net/jxta/impl/document/LiteXMLDocument.html" title="class in net.jxta.impl.document">LiteXMLDocument</A> <B>doc</B></PRE><DL><DD>The document associated with this Element.<P><DL></DL></DL><HR><A NAME="parent"><!-- --></A><H3>parent</H3><PRE>protected <A HREF="../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A> <B>parent</B></PRE><DL><DD>Identifies the element which is the parent of this element. If <code>  this.parent == this</code> then this element is the root of the document.  If <code>null == parent</code> then this element has not yet been  inserted into the document.<P><DL></DL></DL><HR><A NAME="loc"><!-- --></A><H3>loc</H3><PRE>protected <A HREF="../../../../net/jxta/impl/document/LiteXMLElement.tagRange.html" title="class in net.jxta.impl.document">LiteXMLElement.tagRange</A> <B>loc</B></PRE><DL><DD>The portion of the source XML associated with this node<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="LiteXMLElement(net.jxta.impl.document.LiteXMLDocument, java.lang.String)"><!-- --></A><H3>LiteXMLElement</H3><PRE>protected <B>LiteXMLElement</B>(<A HREF="../../../../net/jxta/impl/document/LiteXMLDocument.html" title="class in net.jxta.impl.document">LiteXMLDocument</A>&nbsp;doc,                         java.lang.String&nbsp;name)</PRE><DL><DD>Creates new LiteElement<P><DT><B>Parameters:</B><DD><CODE>doc</CODE> - The <A HREF="../../../../net/jxta/impl/document/LiteXMLDocument.html" title="class in net.jxta.impl.document"><CODE>LiteXMLDocument</CODE></A> which is associated with this element.<DD><CODE>name</CODE> - The name of the element being created.</DL><HR><A NAME="LiteXMLElement(net.jxta.impl.document.LiteXMLDocument, java.lang.String, java.lang.String)"><!-- --></A><H3>LiteXMLElement</H3><PRE>protected <B>LiteXMLElement</B>(<A HREF="../../../../net/jxta/impl/document/LiteXMLDocument.html" title="class in net.jxta.impl.document">LiteXMLDocument</A>&nbsp;doc,                         java.lang.String&nbsp;name,                         java.lang.String&nbsp;val)</PRE><DL><DD>Creates new LiteElement<P><DT><B>Parameters:</B><DD><CODE>doc</CODE> - The <A HREF="../../../../net/jxta/impl/document/LiteXMLDocument.html" title="class in net.jxta.impl.document"><CODE>LiteXMLDocument</CODE></A> which is associated with this element.<DD><CODE>name</CODE> - The name of the element being created.<DD><CODE>val</CODE> - The value of the element being created.</DL><HR><A NAME="LiteXMLElement(net.jxta.impl.document.LiteXMLDocument, net.jxta.impl.document.LiteXMLElement.tagRange)"><!-- --></A><H3>LiteXMLElement</H3><PRE>protected <B>LiteXMLElement</B>(<A HREF="../../../../net/jxta/impl/document/LiteXMLDocument.html" title="class in net.jxta.impl.document">LiteXMLDocument</A>&nbsp;doc,                         <A HREF="../../../../net/jxta/impl/document/LiteXMLElement.tagRange.html" title="class in net.jxta.impl.document">LiteXMLElement.tagRange</A>&nbsp;loc)</PRE><DL><DD>Creates new LiteXMLElement<P><DT><B>Parameters:</B><DD><CODE>loc</CODE> - The location of the element within the document.<DD><CODE>doc</CODE> - The <A HREF="../../../../net/jxta/impl/document/LiteXMLDocument.html" title="class in net.jxta.impl.document"><CODE>LiteXMLDocument</CODE></A> which is 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="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(java.lang.Object&nbsp;element)</PRE><DL><DD><P><DD><DL></DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>  <p/>A toString implementation for debugging purposes.<P><DD><DL></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 The root element 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 element of this element. If this Element has not been inserted into the Document then <code>null</code> is returned. If this element is the root element of the Document then it returns itself. ie., <code>this == this.getParent()</code>.<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="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>Enumeration An enumeration containing all of the children of  this element.</DL></DD></DL><HR><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>

⌨️ 快捷键说明

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