Class XppDom
java.lang.Object
com.thoughtworks.xstream.io.xml.xppdom.XppDom
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Xpp3Dom
Simple Document Object Model for XmlPullParser implementations.
- Since:
- 1.4
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
static XppDom
build
(org.xmlpull.v1.XmlPullParser parser) Build an XPP DOM hierarchy.getAttribute
(String name) String[]
getChild
(int i) int
XppDom[]
XppDom[]
getChildren
(String name) getName()
getValue()
(package private) Object
void
setAttribute
(String name, String value) void
void
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
name
-
value
-
attributes
-
childList
-
childMap
-
parent
-
-
Constructor Details
-
XppDom
-
-
Method Details
-
getName
-
getValue
-
setValue
-
getAttributeNames
-
getAttribute
-
setAttribute
-
getChild
-
getChild
-
addChild
-
getChildren
-
getChildren
-
getChildCount
public int getChildCount() -
getParent
-
setParent
-
readResolve
Object readResolve() -
build
public static XppDom build(org.xmlpull.v1.XmlPullParser parser) throws org.xmlpull.v1.XmlPullParserException, IOException Build an XPP DOM hierarchy. TheInputStream
orReader
used by the parser must have already been set. The method does not close it after reading the document's end.- Parameters:
parser
- the XPP instance- Throws:
org.xmlpull.v1.XmlPullParserException
- if the parser turns into an invalid state or reads invalid XMLIOException
- if the data cannot be read
-