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

📄 element.html

📁 KXML,文档,我也不太知道,只是电脑里有上传上来分给大家
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<DD>Returns the attribute at the given index.</DL><HR><A NAME="getAttribute(java.lang.String)"><!-- --></A><H3>getAttribute</H3><PRE>public <A HREF="../../../org/kxml/Attribute.html">Attribute</A> <B>getAttribute</B>(java.lang.String&nbsp;name)</PRE><DL><DD>convenience method for getAttribute (Xml.NO_NAMESPACE, name)</DL><HR><A NAME="getAttribute(java.lang.String, java.lang.String)"><!-- --></A><H3>getAttribute</H3><PRE>public <A HREF="../../../org/kxml/Attribute.html">Attribute</A> <B>getAttribute</B>(java.lang.String&nbsp;namespace,                              java.lang.String&nbsp;name)</PRE><DL><DD>returns the attribute with the given namespace and name.Please use null as placeholder for any namespace orXml.NO_NAMESPACE for no namespace.</DL><HR><A NAME="getAttributeCount()"><!-- --></A><H3>getAttributeCount</H3><PRE>public int <B>getAttributeCount</B>()</PRE><DL><DD>Returns the number of attributes of this element.</DL><HR><A NAME="getAttributes()"><!-- --></A><H3>getAttributes</H3><PRE>public java.util.Vector <B>getAttributes</B>()</PRE><DL><DD>Returns a Vector containing all Attributes. The Vector is notcopied. Modification is not allowed.</DL><HR><A NAME="getDocument()"><!-- --></A><H3>getDocument</H3><PRE>public <A HREF="../../../org/kxml/kdom/Document.html">Document</A> <B>getDocument</B>()</PRE><DL><DD>Returns the document this element is a member of. The documentis determined by ascending to the parent of the root element.If the element is not contained in a document, null isreturned.</DL><HR><A NAME="getName()"><!-- --></A><H3>getName</H3><PRE>public java.lang.String <B>getName</B>()</PRE><DL><DD>returns the (local) name of the element<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../org/kxml/kdom/Node.html#getName()">getName</A></CODE> in class <CODE><A HREF="../../../org/kxml/kdom/Node.html">Node</A></CODE></DL></DD></DL><HR><A NAME="getNamespace()"><!-- --></A><H3>getNamespace</H3><PRE>public java.lang.String <B>getNamespace</B>()</PRE><DL><DD>returns the namespace of the element<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../org/kxml/kdom/Node.html#getNamespace()">getNamespace</A></CODE> in class <CODE><A HREF="../../../org/kxml/kdom/Node.html">Node</A></CODE></DL></DD></DL><HR><A NAME="getParent()"><!-- --></A><H3>getParent</H3><PRE>public <A HREF="../../../org/kxml/kdom/Node.html">Node</A> <B>getParent</B>()</PRE><DL><DD>Returns the parent node of this element</DL><HR><A NAME="getParentElement()"><!-- --></A><H3>getParentElement</H3><PRE>public <A HREF="../../../org/kxml/kdom/Element.html">Element</A> <B>getParentElement</B>()</PRE><DL><DD>Returns the parent element if available, null otherwise</DL><HR><A NAME="getPrefixMap()"><!-- --></A><H3>getPrefixMap</H3><PRE>public <A HREF="../../../org/kxml/PrefixMap.html">PrefixMap</A> <B>getPrefixMap</B>()</PRE><DL><DD>Returns the namespace prefix map of this Element.</DL><HR><A NAME="getValue(java.lang.String)"><!-- --></A><H3>getValue</H3><PRE>public java.lang.String <B>getValue</B>(java.lang.String&nbsp;name)</PRE><DL><DD>Returns the value of the given attribute.  If the attributedoes not exist, an exception is thrown. If a null value shallbe returned for not existing attributes, please usegetValueDefault (name, null) instead.</DL><HR><A NAME="getValueDefault(java.lang.String, java.lang.String)"><!-- --></A><H3>getValueDefault</H3><PRE>public java.lang.String <B>getValueDefault</B>(java.lang.String&nbsp;name,                                        java.lang.String&nbsp;dflt)</PRE><DL><DD>Returns the value of the given attribute, or the given defaultvalue if the desired attribute does not exist.</DL><HR><A NAME="parse(org.kxml.parser.AbstractXmlParser)"><!-- --></A><H3>parse</H3><PRE>public void <B>parse</B>(<A HREF="../../../org/kxml/parser/AbstractXmlParser.html">AbstractXmlParser</A>&nbsp;parser)           throws java.io.IOException</PRE><DL><DD>Builds the child elements from the given Parser. By overwriting parse, an element can take complete control over parsing its subtree.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../org/kxml/kdom/Node.html#parse(org.kxml.parser.AbstractXmlParser)">parse</A></CODE> in class <CODE><A HREF="../../../org/kxml/kdom/Node.html">Node</A></CODE></DL></DD></DL><HR><A NAME="removeAttribute(int)"><!-- --></A><H3>removeAttribute</H3><PRE>public void <B>removeAttribute</B>(int&nbsp;index)</PRE><DL><DD>Removes the attribute at the given index</DL><HR><A NAME="setAttributes(java.util.Vector)"><!-- --></A><H3>setAttributes</H3><PRE>public void <B>setAttributes</B>(java.util.Vector&nbsp;attributes)</PRE><DL><DD>Replaces all attributes by the given Vector. Caution: TheVector is not copied.</DL><HR><A NAME="setAttribute(org.kxml.Attribute)"><!-- --></A><H3>setAttribute</H3><PRE>public void <B>setAttribute</B>(<A HREF="../../../org/kxml/Attribute.html">Attribute</A>&nbsp;attribute)</PRE><DL><DD>sets the given attribute</DL><HR><A NAME="setValue(java.lang.String, java.lang.String)"><!-- --></A><H3>setValue</H3><PRE>public void <B>setValue</B>(java.lang.String&nbsp;name,                     java.lang.String&nbsp;value)</PRE><DL><DD>sets the value of the given attribute to the given string. Convenience method for setAttribute (new Attribute (name, value));</DL><HR><A NAME="setName(java.lang.String)"><!-- --></A><H3>setName</H3><PRE>public void <B>setName</B>(java.lang.String&nbsp;name)</PRE><DL><DD>sets the name of the element</DL><HR><A NAME="setNamespace(java.lang.String)"><!-- --></A><H3>setNamespace</H3><PRE>public void <B>setNamespace</B>(java.lang.String&nbsp;namespace)</PRE><DL><DD>sets the namespace of the element. Please note: For nonamespace, please use Xml.NO_NAMESPACE, null is not a legalvalue. Currently, null is converted to Xml.NO_NAMESPACE, butfuture versions may throw an exception.</DL><HR><A NAME="setParent(org.kxml.kdom.Node)"><!-- --></A><H3>setParent</H3><PRE>protected void <B>setParent</B>(<A HREF="../../../org/kxml/kdom/Node.html">Node</A>&nbsp;parent)</PRE><DL><DD>Sets the Parent of this element. Automatically called from theadd method.  The right place for replacements of thedeprectated init method. Please use with care, you can simplycreate inconsitencies in the document tree structure usingthis method!</DL><HR><A NAME="setPrefixMap(org.kxml.PrefixMap)"><!-- --></A><H3>setPrefixMap</H3><PRE>public void <B>setPrefixMap</B>(<A HREF="../../../org/kxml/PrefixMap.html">PrefixMap</A>&nbsp;prefixMap)</PRE><DL><DD>Sets the namespace prefix map of this Node.</DL><HR><A NAME="write(org.kxml.io.AbstractXmlWriter)"><!-- --></A><H3>write</H3><PRE>public void <B>write</B>(<A HREF="../../../org/kxml/io/AbstractXmlWriter.html">AbstractXmlWriter</A>&nbsp;writer)           throws java.io.IOException</PRE><DL><DD>Writes this element and all children to the given XmlWriter.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../org/kxml/kdom/Node.html#write(org.kxml.io.AbstractXmlWriter)">write</A></CODE> in class <CODE><A HREF="../../../org/kxml/kdom/Node.html">Node</A></CODE></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <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="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></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../org/kxml/kdom/Document.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../org/kxml/kdom/Node.html"><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="Element.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&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><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>

⌨️ 快捷键说明

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