public class XppDom extends Object implements Serializable
Modifier and Type | Method and Description |
---|---|
void |
addChild(XppDom xpp3Dom) |
static XppDom |
build(XmlPullParser parser)
Build an XPP DOM hierarchy.
|
String |
getAttribute(String name) |
String[] |
getAttributeNames() |
XppDom |
getChild(int i) |
XppDom |
getChild(String name) |
int |
getChildCount() |
XppDom[] |
getChildren() |
XppDom[] |
getChildren(String name) |
String |
getName() |
XppDom |
getParent() |
String |
getValue() |
void |
setAttribute(String name,
String value) |
void |
setParent(XppDom parent) |
void |
setValue(String value) |
public XppDom(String name)
public String getName()
public String getValue()
public void setValue(String value)
public String[] getAttributeNames()
public XppDom getChild(int i)
public void addChild(XppDom xpp3Dom)
public XppDom[] getChildren()
public int getChildCount()
public XppDom getParent()
public void setParent(XppDom parent)
public static XppDom build(XmlPullParser parser) throws XmlPullParserException, IOException
InputStream
or Reader
used by the parser must have already been set. The method does not close it after reading
the document's end.parser
- the XPP instanceXmlPullParserException
- if the parser turns into an invalid state or reads invalid
XMLIOException
- if the data cannot be readCopyright © 2004–2016 XStream. All rights reserved.