public class XppDom
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
XppDom(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
addChild(XppDom xpp3Dom) |
static XppDom |
build(XmlPullParser parser)
Build an XPP DOM hierarchy.
|
java.lang.String |
getAttribute(java.lang.String name) |
java.lang.String[] |
getAttributeNames() |
XppDom |
getChild(int i) |
XppDom |
getChild(java.lang.String name) |
int |
getChildCount() |
XppDom[] |
getChildren() |
XppDom[] |
getChildren(java.lang.String name) |
java.lang.String |
getName() |
XppDom |
getParent() |
java.lang.String |
getValue() |
void |
setAttribute(java.lang.String name,
java.lang.String value) |
void |
setParent(XppDom parent) |
void |
setValue(java.lang.String value) |
public java.lang.String getName()
public java.lang.String getValue()
public void setValue(java.lang.String value)
public java.lang.String[] getAttributeNames()
public java.lang.String getAttribute(java.lang.String name)
public void setAttribute(java.lang.String name, java.lang.String value)
public XppDom getChild(int i)
public XppDom getChild(java.lang.String name)
public void addChild(XppDom xpp3Dom)
public XppDom[] getChildren()
public XppDom[] getChildren(java.lang.String name)
public int getChildCount()
public XppDom getParent()
public void setParent(XppDom parent)
public static XppDom build(XmlPullParser parser) throws XmlPullParserException, java.io.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
XMLjava.io.IOException
- if the data cannot be readCopyright © 2004–2024 XStream. All rights reserved.