|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Node
represents a Node in an XML document
| Field Summary | |
|---|---|
static byte |
ALLTYPES
|
static byte |
ATTRIBUTE
|
static byte |
COMMENT
|
static byte |
ELEMENT
|
static int |
N_TYPES
|
static byte |
NAMESPACE
|
static byte |
PROCESSING_INSTRUCTION
|
static byte |
ROOT
|
static byte |
TEXT
|
| Method Summary | |
|---|---|
int |
compareTo(Node node)
also compares document order |
Node |
getAttribute(Name name)
does this only work on Elements? |
SafeNodeIterator |
getAttributes()
does this only work on Elements? |
java.lang.String |
getAttributeValue(Name name)
does this only work on Elements? |
SafeNodeIterator |
getChildren()
as the name implies ... |
java.lang.String |
getData()
Returns text for TEXT node; value for attribute node; content for comment node; content after PI for PI node; |
Node |
getElementWithId(java.lang.String id)
finds an Element Node, in the this node's document, with the given ID |
SafeNodeIterator |
getFollowingSiblings()
as the name implies ... |
java.lang.String |
getGeneratedId()
guaranteed to be unique (and repeatable) |
int |
getLineNumber()
if decorated with locator events, this returns the line number in the XML source where this node was found |
Name |
getName()
Returns element type name for element; attribute name for an attribute; target for a PI., Namespace prefix for a Namespace |
NamespacePrefixMap |
getNamespacePrefixMap()
in-scope namespaces ?? |
SafeNodeIterator |
getNamespaces()
does this only work on Elements? |
Node |
getParent()
as the name implies ... |
Node |
getRoot()
gets the owning Document's root |
byte |
getType()
returns one of: ELEMENT, TEXT, ATTRIBUTE,
ROOT, PROCESSING_INSTRUCTION or COMMENT |
java.lang.String |
getUnparsedEntityURI(java.lang.String name)
|
java.net.URL |
getURL()
base URL ?? |
boolean |
isId(java.lang.String id)
if this is an attribute?? and it is of type ID ? |
| Methods inherited from interface javax.xml.transform.SourceLocator |
|---|
getColumnNumber, getPublicId, getSystemId |
| Field Detail |
|---|
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 byte NAMESPACE
static final int N_TYPES
static final byte ALLTYPES
| Method Detail |
|---|
byte getType()
ELEMENT, TEXT, ATTRIBUTE,
ROOT, PROCESSING_INSTRUCTION or COMMENT
Name getName()
java.lang.String getData()
Node getParent()
SafeNodeIterator getChildren()
SafeNodeIterator getFollowingSiblings()
java.net.URL getURL()
int getLineNumber()
getLineNumber in interface javax.xml.transform.SourceLocatorNamespacePrefixMap getNamespacePrefixMap()
int compareTo(Node node)
Node getElementWithId(java.lang.String id)
boolean isId(java.lang.String id)
java.lang.String getAttributeValue(Name name)
Node getAttribute(Name name)
SafeNodeIterator getAttributes()
SafeNodeIterator getNamespaces()
java.lang.String getGeneratedId()
java.lang.String getUnparsedEntityURI(java.lang.String name)
Node getRoot()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||