com.jclark.xsl.om
public interface Node extends SourceLocator
Field Summary | |
---|---|
static byte | ALLTYPES |
static byte | ATTRIBUTE |
static byte | COMMENT |
static byte | ELEMENT |
static byte | NAMESPACE |
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? |
String | getAttributeValue(Name name)
does this only work on Elements? |
SafeNodeIterator | getChildren()
as the name implies ... |
String | getData()
Returns text for TEXT node; value for attribute node;
content for comment node;
content after PI for PI node; |
Node | getElementWithId(String id)
finds an Element Node, in the this node's document,
with the given ID |
SafeNodeIterator | getFollowingSiblings()
as the name implies ... |
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 |
String | getUnparsedEntityURI(String name) |
URL | getURL()
base URL ? |
boolean | isId(String id)
if this is an attribute? |
UNKNOWN: ?? -1 if precedes, +1 if follows?
ELEMENT, TEXT, ATTRIBUTE,
ROOT, PROCESSING_INSTRUCTION or COMMENT