org.kxml.parser
Class Tag
java.lang.Object
org.kxml.parser.ParseEvent
org.kxml.parser.Tag
- Direct Known Subclasses:
- StartTag
public class Tag
- extends ParseEvent
A class for events indicating the
end of an element
Constructor Summary |
Tag(int type,
StartTag parent,
java.lang.String namespace,
java.lang.String name)
|
Method Summary |
java.lang.String |
getName()
returns the (local) name of the element |
java.lang.String |
getNamespace()
returns the namespace |
StartTag |
getParent()
Returns the (corresponding) start tag or the start tag of the parent element, depending on the event type. |
java.lang.String |
toString()
|
Methods inherited from class org.kxml.parser.ParseEvent |
getAttribute, getAttribute, getAttribute, getAttributeCount, getAttributes, getLineNumber, getText, getType, getValue, getValueDefault, setLineNumber |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Tag
public Tag(int type,
StartTag parent,
java.lang.String namespace,
java.lang.String name)
getName
public java.lang.String getName()
- returns the (local) name of the element
- Overrides:
getName
in class ParseEvent
getNamespace
public java.lang.String getNamespace()
- returns the namespace
- Overrides:
getNamespace
in class ParseEvent
getParent
public StartTag getParent()
- Returns the (corresponding) start tag or the start tag of the parent element, depending on the event type.
toString
public java.lang.String toString()
- Overrides:
toString
in class ParseEvent