📄 parseevent.html
字号:
</TD></TR></TABLE> <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> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= 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="ParseEvent(int, java.lang.String)"><!-- --></A><H3>ParseEvent</H3><PRE>public <B>ParseEvent</B>(int type, java.lang.String text)</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="getLineNumber()"><!-- --></A><H3>getLineNumber</H3><PRE>public int <B>getLineNumber</B>()</PRE><DL><DD>returns the line number of the event</DL><HR><A NAME="getType()"><!-- --></A><H3>getType</H3><PRE>public int <B>getType</B>()</PRE><DL><DD>returns the event type integer constant assigned to thisevent. Possible event types are Xml.START_TAG, Xml.END_TAG,Xml.TEXT, Xml.WHITESPACE, Xml.PROCESSING_INSTRUCTION, Xml.COMMENT,Xml.DOCTYPE, and Xml.END_DOCUMENT. Please refer to the Xml classdescription for more details.</DL><HR><A NAME="setLineNumber(int)"><!-- --></A><H3>setLineNumber</H3><PRE>public void <B>setLineNumber</B>(int lineNumber)</PRE><DL><DD>sets the line number of the event. Used by the parser only.</DL><HR><A NAME="getAttribute(int)"><!-- --></A><H3>getAttribute</H3><PRE>public <A HREF="../../../org/kxml/Attribute.html">Attribute</A> <B>getAttribute</B>(int index)</PRE><DL><DD>In the event type is START_TAG, this method returns the attribute at the given index position. For all other eventtypes, or if the index is out of range, an exception is thrown.</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 name)</PRE><DL><DD>returns the local attribute with the given name. conveniencemethod 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 namespace, java.lang.String name)</PRE><DL><DD>returns the local attribute with the given qualified 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>If the event type is START_TAG, the number of attributes isreturned. For all other event types, an exception is thrown.</DL><HR><A NAME="getAttributes()"><!-- --></A><H3>getAttributes</H3><PRE>public java.util.Vector <B>getAttributes</B>()</PRE><DL><DD>If the event type is START_TAG, the attribute Vector (null ifno attributes) is returned. For all other event types, anexception is thrown.</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 started ifinstance of StartTag, null otherwise.</DL><HR><A NAME="getNamespace()"><!-- --></A><H3>getNamespace</H3><PRE>public java.lang.String <B>getNamespace</B>()</PRE><DL><DD>returns namespace if instance of StartTag, nullotherwise.</DL><HR><A NAME="getValue(java.lang.String)"><!-- --></A><H3>getValue</H3><PRE>public java.lang.String <B>getValue</B>(java.lang.String attrName)</PRE><DL><DD>Returns the value of the attribute with the given name.Throws an exception if not instanceof StartTag or if notexisting. In order to get a null value for not existingattributes, please call getValueDefault (attrName, 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 attrName, java.lang.String deflt)</PRE><DL><DD>Returns the given attribute value, or the given default valueif the attribute is not existing.</DL><HR><A NAME="getText()"><!-- --></A><H3>getText</H3><PRE>public java.lang.String <B>getText</B>()</PRE><DL><DD>If the event type is TEXT, PROCESSING_INSTRUCTION,or DOCTYPE, the corresponding string is returned. Forall othe event types, null is returned.</DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD><DL><DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</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> </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="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></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../org/kxml/parser/AbstractXmlParser.html"><B>PREV CLASS</B></A> <A HREF="../../../org/kxml/parser/StartTag.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> <A HREF="ParseEvent.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <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 + -