public abstract class Node extends Object
Node instances can be obtained only using the
SolidXml#getRoot(), getChild(), or getSibling() method.
| 构造器 | 说明 |
|---|---|
Node() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
abstract List<Attribute> |
getAttributes() |
Obtains the attribute set of a node.
|
abstract Node |
getChild() |
Obtains the root node of a node.
|
abstract String |
getName() |
Obtains the original name of a node.
|
abstract Node |
getSibling() |
Obtains the first sibling node of a node.
|
abstract String |
getStringValue() |
Obtains the original value of a node.
|
abstract List<TypedAttribute> |
getTypedAttribute(ResourceManager resManager) |
已过时。
This change is effective since API version 4. Replaced by
getTypedAttributes() |
abstract List<TypedAttribute> |
getTypedAttributes(ResourceManager resManager) |
Obtains the typed attribute set of a node.
|
abstract List<TypedAttribute> |
getTypedAttributes(Pattern defaultPattern) |
Obtains the set of node and
defaultPattern attributes. |
abstract List<TypedAttribute> |
getTypedAttributes(Pattern defaultPattern,
String[] selected) |
Obtains attributes of selected names from the set of node and
defaultPattern attributes. |
public abstract String getName()
public abstract String getStringValue()
public abstract Node getChild()
null if there
is not such a node.public abstract Node getSibling()
null
if there is not such a node.public abstract List<Attribute> getAttributes()
null if
there are no attributes.@Deprecated public abstract List<TypedAttribute> getTypedAttribute(ResourceManager resManager)
getTypedAttributes()resManager - Indicates the ResourceManager used to obtain the
TypedAttribute instance.null if there are no typed attributes.public abstract List<TypedAttribute> getTypedAttributes(ResourceManager resManager)
resManager - Indicates the ResourceManager used to obtain the
TypedAttribute instance.null if there are no typed attributes.public abstract List<TypedAttribute> getTypedAttributes(Pattern defaultPattern)
defaultPattern attributes. The node attributes overwrite the
defaultPattern attributes with the same name.defaultPattern - Indicates the defaultPattern instance to form the attribute set.public abstract List<TypedAttribute> getTypedAttributes(Pattern defaultPattern, String[] selected)
defaultPattern attributes. The node
attributes overwrite the defaultPattern attributes with the same name.defaultPattern - Indicates the defaultPattern instance in the attribute set.selected - Indicates the set of selected attribute names.