📄 plaintextelement.html
字号:
<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>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/document/TextElement.html#getName()">getName</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/document/TextElement.html" title="interface in net.jxta.document">TextElement</A></CODE></DL></DD><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>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/document/TextElement.html#getTextValue()">getTextValue</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/document/TextElement.html" title="interface in net.jxta.document">TextElement</A></CODE></DL></DD><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> element)</PRE><DL><DD>Add a child element to this element<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/document/TextElement.html#appendChild(net.jxta.document.TextElement)">appendChild</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/document/TextElement.html" title="interface in net.jxta.document">TextElement</A></CODE></DL></DD><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 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>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/document/TextElement.html#getChildren(java.lang.String)">getChildren</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/document/TextElement.html" title="interface in net.jxta.document">TextElement</A></CODE></DL></DD><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="printNice(java.io.Writer, int, boolean)"><!-- --></A><H3>printNice</H3><PRE>protected void <B>printNice</B>(java.io.Writer into, int indent, boolean 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></DL></DD><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="addAttribute(java.lang.String, java.lang.String)"><!-- --></A><H3>addAttribute</H3><PRE>public java.lang.String <B>addAttribute</B>(java.lang.String name, java.lang.String 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>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/document/Attributable.html#addAttribute(java.lang.String, java.lang.String)">addAttribute</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/document/Attributable.html" title="interface in net.jxta.document">Attributable</A></CODE></DL></DD><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> 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>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/document/Attributable.html#addAttribute(net.jxta.document.Attribute)">addAttribute</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/document/Attributable.html" title="interface in net.jxta.document">Attributable</A></CODE></DL></DD><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>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/document/Attributable.html#getAttributes()">getAttributes</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/document/Attributable.html" title="interface in net.jxta.document">Attributable</A></CODE></DL></DD><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 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>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/document/Attributable.html#getAttribute(java.lang.String)">getAttribute</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/document/Attributable.html" title="interface in net.jxta.document">Attributable</A></CODE></DL></DD><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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/PlainTextElement.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </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"> <A HREF="../../../../net/jxta/impl/document/PlainTextDocument.html" title="class in net.jxta.impl.document"><B>PREV CLASS</B></A> <A HREF="../../../../net/jxta/impl/document/TextDocumentCommon.Utils.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> <A HREF="PlainTextElement.html" target="_top"><B>NO FRAMES</B></A> <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: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <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 + -