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, setParentNode
addAttribute, addAttribute, ensureAttributesCapacity, getAttributeCount, getAttributeLocalName, getAttributeNamespaceUri, getAttributePrefix, getAttributeRawName, getAttributeValue, getAttributeValueFromName, getAttributeValueFromRawName, isAttributeNamespaceDeclaration, removeAttributeByName, removeAttributeByRawName, removeAttributes, resetStartTag
getLocalName, getNamespaceUri, getPrefix, getRawName, modifyTag, resetTag
void resetPullNode()
XmlNode newNode() throws XmlPullParserException
XmlNode
newNode
in interface XmlNode
XmlPullParserException
XmlPullNode newPullNode(XmlPullParser pp) throws XmlPullParserException
XmlPullParserException
boolean isFinished()
XmlPullParser getPullParser() throws java.io.IOException, XmlPullParserException
NOTE: this pull node must be in unfinished state or exception will be thrown
java.io.IOException
XmlPullParserException
void setPullParser(XmlPullParser pp) throws XmlPullParserException
XmlPullParserException
int getChildrenCountSoFar()
java.util.Enumeration children()
children
in interface XmlNode
readNextChild()
java.lang.Object readNextChild() throws XmlPullParserException, java.io.IOException
XmlPullParserException
java.io.IOException
children()
void readChildren() throws XmlPullParserException, java.io.IOException
XmlPullParserException
java.io.IOException
void skipChildren() throws XmlPullParserException, java.io.IOException
XmlPullParserException
java.io.IOException
Copyright (c) 2003 IU Extreme! Lab http://www.extreme.indiana.edu/ All Rights Reserved.
Note this package is deprecated by XPP3 that implements XmlPull API