public interface XmlPullNode extends XmlNode
XmlNode| Modifier and Type | Method and Description |
|---|---|
java.util.Enumeration |
children()
This is not recommened method to pull children when node is not
finished (use readNextChild() instead) as Enumeration interface
does not allow to throw XmlPullParserException
so any parsing exeption is wrapped into RuntimeException
making code more messy...
|
int |
getChildrenCountSoFar() |
XmlPullParser |
getPullParser()
Get parser that is use to build this node tree
and this pull node becomes finished - the caller is responsibile
to move pull parser state to the end tag of this node
(or parent pull node will be left in unconsistent state!!!!).
|
boolean |
isFinished()
Is pull parsing of node finished.
|
XmlNode |
newNode()
context sensitive factory method to create the same type of node
|
XmlPullNode |
newPullNode(XmlPullParser pp) |
void |
readChildren()
Read all reminaing children up to end tag.
|
java.lang.Object |
readNextChild()
This is preferred method to pull children
(children() requires .wrapping object Enumeration).
|
void |
resetPullNode() |
void |
setPullParser(XmlPullParser pp)
Reset pull node to use pull parser.
|
void |
skipChildren() |
addDeclaredNamespaces, addNamespaceDeclaration, appendChild, ensureChildrenCapacity, ensureDeclaredNamespacesCapacity, getChildAt, getChildrenCount, getDeclaredNamespaceLength, getDefaultNamespaceUri, getParentNode, getQNameLocal, getQNameUri, insertChildAt, namespace2Prefix, newNode, prefix2Namespace, readDeclaredNamespaceUris, readDeclaredPrefixes, removeChildAt, removeChildren, removeDeclaredNamespaces, replaceChildAt, resetNode, setDefaultNamespaceUri, setParentNodeaddAttribute, addAttribute, ensureAttributesCapacity, getAttributeCount, getAttributeLocalName, getAttributeNamespaceUri, getAttributePrefix, getAttributeRawName, getAttributeValue, getAttributeValueFromName, getAttributeValueFromRawName, isAttributeNamespaceDeclaration, removeAttributeByName, removeAttributeByRawName, removeAttributes, resetStartTaggetLocalName, getNamespaceUri, getPrefix, getRawName, modifyTag, resetTagvoid resetPullNode()
XmlNode newNode() throws XmlPullParserException
XmlNodenewNode in interface XmlNodeXmlPullParserExceptionXmlPullNode newPullNode(XmlPullParser pp) throws XmlPullParserException
XmlPullParserExceptionboolean isFinished()
XmlPullParser getPullParser() throws java.io.IOException, XmlPullParserException
NOTE: this pull node must be in unfinished state or exception will be thrown
java.io.IOExceptionXmlPullParserExceptionvoid setPullParser(XmlPullParser pp) throws XmlPullParserException
XmlPullParserExceptionint getChildrenCountSoFar()
java.util.Enumeration children()
children in interface XmlNodereadNextChild()java.lang.Object readNextChild()
throws XmlPullParserException,
java.io.IOException
XmlPullParserExceptionjava.io.IOExceptionchildren()void readChildren()
throws XmlPullParserException,
java.io.IOException
XmlPullParserExceptionjava.io.IOExceptionvoid skipChildren()
throws XmlPullParserException,
java.io.IOException
XmlPullParserExceptionjava.io.IOExceptionCopyright (c) 2003 IU Extreme! Lab http://www.extreme.indiana.edu/ All Rights Reserved.
Note this package is deprecated by XPP3 that implements XmlPull API