|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractCollection | +--java.util.AbstractList | +--org.mortbay.xml.XmlParser.Node
XML Node. Represents an XML element with optional attributes and ordered content.
Method Summary | |
void |
add(int i,
java.lang.Object o)
|
void |
clear()
|
java.lang.Object |
get(int i)
Get the ith child node or content. |
XmlParser.Node |
get(java.lang.String tag)
Get the first child node with the tag. |
java.lang.String |
getAttribute(java.lang.String name)
Get an element attribute. |
java.lang.String |
getAttribute(java.lang.String name,
java.lang.String dft)
Get an element attribute. |
XmlParser.Attribute[] |
getAttributes()
Get an array of element attributes. |
XmlParser.Node |
getParent()
|
java.lang.String |
getString(java.lang.String tag,
boolean tags,
boolean trim)
Get a tag as a string. |
java.lang.String |
getTag()
|
java.util.Iterator |
iterator(java.lang.String tag)
Iterator over named child nodes. |
int |
size()
Get the number of children nodes. |
java.lang.String |
toString()
|
java.lang.String |
toString(boolean tag)
Convert to a string. |
java.lang.String |
toString(boolean tag,
boolean trim)
Convert to a string. |
Methods inherited from class java.util.AbstractList |
add, addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, set, subList |
Methods inherited from class java.util.AbstractCollection |
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
Method Detail |
public XmlParser.Node getParent()
public java.lang.String getTag()
public XmlParser.Attribute[] getAttributes()
public java.lang.String getAttribute(java.lang.String name)
public java.lang.String getAttribute(java.lang.String name, java.lang.String dft)
public int size()
size
in interface java.util.List
size
in class java.util.AbstractCollection
public java.lang.Object get(int i)
get
in interface java.util.List
get
in class java.util.AbstractList
public XmlParser.Node get(java.lang.String tag)
tag
-
public void add(int i, java.lang.Object o)
add
in interface java.util.List
add
in class java.util.AbstractList
public void clear()
clear
in interface java.util.List
clear
in class java.util.AbstractList
public java.lang.String getString(java.lang.String tag, boolean tags, boolean trim)
tag
- The tag to gettags
- IF true, tags are included in the value.trim
- If true, trim the value.
public java.lang.String toString()
toString
in class java.util.AbstractCollection
public java.lang.String toString(boolean tag)
tag
- If false, only content is shown.public java.lang.String toString(boolean tag, boolean trim)
tag
- If false, only content is shown.public java.util.Iterator iterator(java.lang.String tag)
tag
- The tag of the nodes.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |