|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
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. |
NamespacePrefixMap |
getNamespacePrefixMap()
in-scope namespaces ?? |
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 |
public static final byte ELEMENT
public static final byte TEXT
public static final byte ATTRIBUTE
public static final byte ROOT
public static final byte PROCESSING_INSTRUCTION
public static final byte COMMENT
public static final int N_TYPES
public static final byte ALLTYPES
Method Detail |
public byte getType()
ELEMENT, TEXT, ATTRIBUTE,
ROOT, PROCESSING_INSTRUCTION or COMMENT
public Name getName()
public java.lang.String getData()
public Node getParent()
public SafeNodeIterator getChildren()
public SafeNodeIterator getFollowingSiblings()
public java.net.URL getURL()
public int getLineNumber()
getLineNumber
in interface javax.xml.transform.SourceLocator
public NamespacePrefixMap getNamespacePrefixMap()
public int compareTo(Node node)
public Node getElementWithId(java.lang.String id)
public boolean isId(java.lang.String id)
public java.lang.String getAttributeValue(Name name)
public Node getAttribute(Name name)
public SafeNodeIterator getAttributes()
public java.lang.String getGeneratedId()
public java.lang.String getUnparsedEntityURI(java.lang.String name)
public Node getRoot()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |