|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<Object>
org.eclipse.jetty.xml.XmlParser.Node
public static class XmlParser.Node
XML Node. Represents an XML element with optional attributes and ordered content.
| 字段摘要 |
|---|
| 从类 java.util.AbstractList 继承的字段 |
|---|
modCount |
| 方法摘要 | |
|---|---|
void |
add(int i,
Object o)
|
void |
clear()
|
Object |
get(int i)
Get the ith child node or content. |
XmlParser.Node |
get(String tag)
Get the first child node with the tag. |
String |
getAttribute(String name)
Get an element attribute. |
String |
getAttribute(String name,
String dft)
Get an element attribute. |
XmlParser.Attribute[] |
getAttributes()
Get an array of element attributes. |
XmlParser.Node |
getParent()
|
String |
getPath()
|
String |
getString(String tag,
boolean tags,
boolean trim)
Get a tag as a string. |
String |
getTag()
|
Iterator<XmlParser.Node> |
iterator(String tag)
Iterator over named child nodes. |
int |
size()
Get the number of children nodes. |
String |
toString()
|
String |
toString(boolean tag)
Convert to a string. |
String |
toString(boolean tag,
boolean trim)
Convert to a string. |
| 从类 java.util.AbstractList 继承的方法 |
|---|
add, addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList |
| 从类 java.util.AbstractCollection 继承的方法 |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| 从接口 java.util.List 继承的方法 |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
| 方法详细信息 |
|---|
public XmlParser.Node getParent()
public String getTag()
public String getPath()
public XmlParser.Attribute[] getAttributes()
public String getAttribute(String name)
public String getAttribute(String name,
String dft)
public int size()
Collection<Object> 中的 sizeList<Object> 中的 sizeAbstractCollection<Object> 中的 sizepublic Object get(int i)
List<Object> 中的 getAbstractList<Object> 中的 getpublic XmlParser.Node get(String tag)
tag -
public void add(int i,
Object o)
List<Object> 中的 addAbstractList<Object> 中的 addpublic void clear()
Collection<Object> 中的 clearList<Object> 中的 clearAbstractList<Object> 中的 clear
public String getString(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 String toString()
AbstractCollection<Object> 中的 toStringpublic String toString(boolean tag)
tag - If false, only _content is shown.
public String toString(boolean tag,
boolean trim)
tag - If false, only _content is shown.public Iterator<XmlParser.Node> iterator(String tag)
tag - The tag of the nodes.
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||