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

📄 litexmlelement.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<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="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(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="getTextValue(boolean, boolean)"><!-- --></A><H3>getTextValue</H3><PRE>protected java.lang.String <B>getTextValue</B>(boolean&nbsp;getEncoded,                                        boolean&nbsp;trim)</PRE><DL><DD>Get the value (if any) associated with an element.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>getEncoded</CODE> - if true then the contents will be encoded such that      the contents will not be interpreted as XML. see      <a href="http://www.w3.org/TR/REC-xml#syntax">W3C XML 1.0 Specification</a>      ie. < -> &lt; & -> &amp;<DT><B>Returns:</B><DD>A string containing the value of this element, if any, otherwise null.</DL></DD></DL><HR><A NAME="printNice(java.io.Writer, int, boolean)"><!-- --></A><H3>printNice</H3><PRE>protected void <B>printNice</B>(java.io.Writer&nbsp;into,                         int&nbsp;indent,                         boolean&nbsp;recurse)                  throws java.io.IOException</PRE><DL><DD>Write the contents of this element and optionally its children. The  writing is done to a provided java.io.Writer. The writing can optionally  be indented<P><DD><DL><DT><B>Parameters:</B><DD><CODE>into</CODE> - The java.io.Writer that the output will be sent to.<DD><CODE>indent</CODE> - the number of tabs which will be inserted before each      line.<DD><CODE>recurse</CODE> - if true then also print the children of this element.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="getTagRanges(java.lang.StringBuffer, java.lang.String, net.jxta.impl.document.LiteXMLElement.charRange)"><!-- --></A><H3>getTagRanges</H3><PRE>protected <A HREF="../../../../net/jxta/impl/document/LiteXMLElement.tagRange.html" title="class in net.jxta.impl.document">LiteXMLElement.tagRange</A> <B>getTagRanges</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)</PRE><DL><DD>Given a source string, an optional tag and a range with in the source find either the tag specified or the next tag. The search consists of 4 phases :    0.  If no tag was specified, determine if a tag can be found and        learn its name.    1.  Search for the start of the named tag.    2.  Search for the end tag. Each time we think we have found a tag        which might be the end tag we make sure it is not the end tag        of another element with the same name as our tag.    3.  Calculate the position of the body of the tag given the locations        of the start and end.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>source</CODE> - the string to search<DD><CODE>tag</CODE> - the tag to search for in the source string. If this tag is    empty or null then we will search for the next tag.<DD><CODE>range</CODE> - describes the range of character locations in the source    string to which the search will be limited.<DT><B>Returns:</B><DD>tagRange containing the ranges of the found tag.</DL></DD></DL><HR><A NAME="addChildTags(net.jxta.impl.document.LiteXMLElement.charRange, net.jxta.impl.document.LiteXMLElement)"><!-- --></A><H3>addChildTags</H3><PRE>protected void <B>addChildTags</B>(<A HREF="../../../../net/jxta/impl/document/LiteXMLElement.charRange.html" title="class in net.jxta.impl.document">LiteXMLElement.charRange</A>&nbsp;scanRange,                            <A HREF="../../../../net/jxta/impl/document/LiteXMLElement.html" title="class in net.jxta.impl.document">LiteXMLElement</A>&nbsp;addTo)</PRE><DL><DD>Parse a charRange and add any tags found as content as children of a  specified element. This process is repeated recursivly.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>scanRange</CODE> - the range to be parsed for sub-tags<DD><CODE>addTo</CODE> - the element to add any discovered children to.</DL></DD></DL><HR><A NAME="adjustLocations(int, int)"><!-- --></A><H3>adjustLocations</H3><PRE>protected void <B>adjustLocations</B>(int&nbsp;beginningAt,                               int&nbsp;by)</PRE><DL><DD>For this element and all its children adjust the location of its ranges  by the amount specified.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>beginningAt</CODE> - adjust all locations which are at or past this location.<DD><CODE>by</CODE> - amount to adjust all matching locations.</DL></DD></DL><HR><A NAME="decodeEscaped(java.lang.StringBuffer)"><!-- --></A><H3>decodeEscaped</H3><PRE>protected java.lang.StringBuffer <B>decodeEscaped</B>(java.lang.StringBuffer&nbsp;target)</PRE><DL><DD>Given a StringBuffer find all occurances of escaped characters which  must be decoded and convert them back to their non-escaped equivalents.  <p/>Also does end of line folding per: <a href="http://www.w3.org/TR/REC-xml#sec-line-ends"/><P><DD><DL><DT><B>Parameters:</B><DD><CODE>target</CODE> - The stringbuffer which will be decoded.<DT><B>Returns:</B><DD>The decoded version of the stringbuffer.</DL></DD></DL><HR><A NAME="encodeEscaped(java.lang.StringBuffer)"><!-- --></A><H3>encodeEscaped</H3><PRE>protected void <B>encodeEscaped</B>(java.lang.StringBuffer&nbsp;target)</PRE><DL><DD>Given a StringBuffer find all occurances of characters which must be  escaped and convert them to their escaped equivalents.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>target</CODE> - The stringbuffer which will be encoded in place.</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="getAttributeLoc(java.lang.String, net.jxta.impl.document.LiteXMLElement.charRange)"><!-- --></A><H3>getAttributeLoc</H3><PRE>protected <A HREF="../../../../net/jxta/impl/document/LiteXMLElement.tagRange.html" title="class in net.jxta.impl.document">LiteXMLElement.tagRange</A> <B>getAttributeLoc</B>(java.lang.String&nbsp;name,                                                  <A HREF="../../../../net/jxta/impl/document/LiteXMLElement.charRange.html" title="class in net.jxta.impl.document">LiteXMLElement.charRange</A>&nbsp;inRange)</PRE><DL><DD>Returns the tagRange of the next attribute contained in the range  provided. The tag range returned consists of the startTag indicating  the location of the name, body indicating the location of the value and  endTag indicating the location of the final quote delimiter.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - Name to match. null means match any name.<DD><CODE>inRange</CODE> - the limits of the locations to scan.<DT><B>Returns:</B><DD>tagRange containing the location of the next attribute</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="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/LiteXMLElement.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/LiteXMLDocument.html" title="class in net.jxta.impl.document"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../net/jxta/impl/document/LiteXMLElement.charRange.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="LiteXMLElement.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;<A HREF="#nested_class_summary">NESTED</A>&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 + -