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

📄 element.html

📁 KXML,文档,我也不太知道,只是电脑里有上传上来分给大家
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the parent element if available, null otherwise</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../org/kxml/PrefixMap.html">PrefixMap</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/kxml/kdom/Element.html#getPrefixMap()">getPrefixMap</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the namespace prefix map of this Element.</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="../../../org/kxml/kdom/Element.html#getValue(java.lang.String)">getValue</A></B>(java.lang.String&nbsp;name)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the value of the given attribute.</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="../../../org/kxml/kdom/Element.html#getValueDefault(java.lang.String, java.lang.String)">getValueDefault</A></B>(java.lang.String&nbsp;name,                java.lang.String&nbsp;dflt)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the value of the given attribute, or the given defaultvalue if the desired attribute does not exist.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../org/kxml/kdom/Element.html">Element</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/kxml/kdom/Element.html#init(org.kxml.kdom.Node, java.lang.String, java.lang.String, java.util.Vector)">init</A></B>(<A HREF="../../../org/kxml/kdom/Node.html">Node</A>&nbsp;parent,     java.lang.String&nbsp;namespace,     java.lang.String&nbsp;name,     java.util.Vector&nbsp;attributes)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>The init method is invoked by createElement setParent .</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/kxml/kdom/Element.html#parse(org.kxml.parser.AbstractXmlParser)">parse</A></B>(<A HREF="../../../org/kxml/parser/AbstractXmlParser.html">AbstractXmlParser</A>&nbsp;parser)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Builds the child elements from the given Parser.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/kxml/kdom/Element.html#removeAttribute(int)">removeAttribute</A></B>(int&nbsp;index)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes the attribute at the given index</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/kxml/kdom/Element.html#setAttribute(org.kxml.Attribute)">setAttribute</A></B>(<A HREF="../../../org/kxml/Attribute.html">Attribute</A>&nbsp;attribute)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sets the given attribute</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/kxml/kdom/Element.html#setAttributes(java.util.Vector)">setAttributes</A></B>(java.util.Vector&nbsp;attributes)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Replaces all attributes by the given Vector.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/kxml/kdom/Element.html#setName(java.lang.String)">setName</A></B>(java.lang.String&nbsp;name)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sets the name of the element</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/kxml/kdom/Element.html#setNamespace(java.lang.String)">setNamespace</A></B>(java.lang.String&nbsp;namespace)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sets the namespace of the 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="../../../org/kxml/kdom/Element.html#setParent(org.kxml.kdom.Node)">setParent</A></B>(<A HREF="../../../org/kxml/kdom/Node.html">Node</A>&nbsp;parent)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the Parent of this element.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/kxml/kdom/Element.html#setPrefixMap(org.kxml.PrefixMap)">setPrefixMap</A></B>(<A HREF="../../../org/kxml/PrefixMap.html">PrefixMap</A>&nbsp;prefixMap)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the namespace prefix map of this Node.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/kxml/kdom/Element.html#setValue(java.lang.String, java.lang.String)">setValue</A></B>(java.lang.String&nbsp;name,         java.lang.String&nbsp;value)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sets the value of the given attribute to the given string.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/kxml/kdom/Element.html#write(org.kxml.io.AbstractXmlWriter)">write</A></B>(<A HREF="../../../org/kxml/io/AbstractXmlWriter.html">AbstractXmlWriter</A>&nbsp;writer)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes this element and all children to the given XmlWriter.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_org.kxml.kdom.Node"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class org.kxml.kdom.<A HREF="../../../org/kxml/kdom/Node.html">Node</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../org/kxml/kdom/Node.html#addChild(int, int, java.lang.Object)">addChild</A>, <A HREF="../../../org/kxml/kdom/Node.html#addChild(int, java.lang.Object)">addChild</A>, <A HREF="../../../org/kxml/kdom/Node.html#getChild(int)">getChild</A>, <A HREF="../../../org/kxml/kdom/Node.html#getChildCount()">getChildCount</A>, <A HREF="../../../org/kxml/kdom/Node.html#getElement(int)">getElement</A>, <A HREF="../../../org/kxml/kdom/Node.html#getElement(java.lang.String)">getElement</A>, <A HREF="../../../org/kxml/kdom/Node.html#getElement(java.lang.String, java.lang.String)">getElement</A>, <A HREF="../../../org/kxml/kdom/Node.html#getText()">getText</A>, <A HREF="../../../org/kxml/kdom/Node.html#getText(int)">getText</A>, <A HREF="../../../org/kxml/kdom/Node.html#getType(int)">getType</A>, <A HREF="../../../org/kxml/kdom/Node.html#indexOf(java.lang.String, int)">indexOf</A>, <A HREF="../../../org/kxml/kdom/Node.html#indexOf(java.lang.String, java.lang.String, int)">indexOf</A>, <A HREF="../../../org/kxml/kdom/Node.html#removeChild(int)">removeChild</A>, <A HREF="../../../org/kxml/kdom/Node.html#toString()">toString</A>, <A HREF="../../../org/kxml/kdom/Node.html#writeChildren(org.kxml.io.AbstractXmlWriter)">writeChildren</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="namespace"><!-- --></A><H3>namespace</H3><PRE>protected java.lang.String <B>namespace</B></PRE><DL></DL><HR><A NAME="name"><!-- --></A><H3>name</H3><PRE>protected java.lang.String <B>name</B></PRE><DL></DL><HR><A NAME="attributes"><!-- --></A><H3>attributes</H3><PRE>protected java.util.Vector <B>attributes</B></PRE><DL></DL><HR><A NAME="parent"><!-- --></A><H3>parent</H3><PRE>protected <A HREF="../../../org/kxml/kdom/Node.html">Node</A> <B>parent</B></PRE><DL></DL><HR><A NAME="prefixMap"><!-- --></A><H3>prefixMap</H3><PRE>protected <A HREF="../../../org/kxml/PrefixMap.html">PrefixMap</A> <B>prefixMap</B></PRE><DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="Element()"><!-- --></A><H3>Element</H3><PRE>public <B>Element</B>()</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="init(org.kxml.kdom.Node, java.lang.String, java.lang.String, java.util.Vector)"><!-- --></A><H3>init</H3><PRE>public <A HREF="../../../org/kxml/kdom/Element.html">Element</A> <B>init</B>(<A HREF="../../../org/kxml/kdom/Node.html">Node</A>&nbsp;parent,                    java.lang.String&nbsp;namespace,                    java.lang.String&nbsp;name,                    java.util.Vector&nbsp;attributes)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>The init method is invoked by createElement setParent .</I><P></DL><HR><A NAME="clear()"><!-- --></A><H3>clear</H3><PRE>public void <B>clear</B>()</PRE><DL><DD>removes all children and attributes</DL><HR><A NAME="createElement(java.lang.String, java.lang.String)"><!-- --></A><H3>createElement</H3><PRE>public <A HREF="../../../org/kxml/kdom/Element.html">Element</A> <B>createElement</B>(java.lang.String&nbsp;namespace,                             java.lang.String&nbsp;name)</PRE><DL><DD>Forwards creation request to parent if any, otherwisecalls super.createElement. 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.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../org/kxml/kdom/Node.html#createElement(java.lang.String, java.lang.String)">createElement</A></CODE> in class <CODE><A HREF="../../../org/kxml/kdom/Node.html">Node</A></CODE></DL></DD></DL><HR><A NAME="getAttribute(int)"><!-- --></A><H3>getAttribute</H3><PRE>public <A HREF="../../../org/kxml/Attribute.html">Attribute</A> <B>getAttribute</B>(int&nbsp;index)</PRE><DL>

⌨️ 快捷键说明

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