public interface Node
Modifier and Type | Field and Description |
---|---|
static byte |
ATTRIBUTE |
static byte |
COMMENT |
static byte |
ELEMENT |
static int |
N_TYPES |
static byte |
PROCESSING_INSTRUCTION |
static byte |
ROOT |
static byte |
TEXT |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Node node) |
Node |
getAttribute(Name name) |
SafeNodeIterator |
getAttributes() |
java.lang.String |
getAttributeValue(Name name) |
SafeNodeIterator |
getChildren() |
java.lang.String |
getData()
Returns text for TEXT node; value for attribute node;
content for comment node;
content after PI for PI node; null otherwise.
|
Node |
getElementWithId(java.lang.String id) |
SafeNodeIterator |
getFollowingSiblings() |
java.lang.String |
getGeneratedId() |
int |
getLineNumber() |
Name |
getName()
Returns element type name for element; attribute name for an attribute;
target for a PI.
|
NamespacePrefixMap |
getNamespacePrefixMap() |
Node |
getParent() |
Node |
getRoot() |
byte |
getType() |
java.lang.String |
getUnparsedEntityURI(java.lang.String name) |
java.net.URL |
getURL() |
boolean |
isId(java.lang.String id) |
static final byte ELEMENT
static final byte TEXT
static final byte ATTRIBUTE
static final byte ROOT
static final byte PROCESSING_INSTRUCTION
static final byte COMMENT
static final int N_TYPES
byte getType()
Name getName()
java.lang.String getData()
Node getParent()
SafeNodeIterator getChildren()
SafeNodeIterator getFollowingSiblings()
java.net.URL getURL()
int getLineNumber()
NamespacePrefixMap getNamespacePrefixMap()
int compareTo(Node node)
Node getElementWithId(java.lang.String id)
boolean isId(java.lang.String id)
java.lang.String getAttributeValue(Name name)
SafeNodeIterator getAttributes()
java.lang.String getGeneratedId()
java.lang.String getUnparsedEntityURI(java.lang.String name)
Node getRoot()