com.jclark.xsl.om
Interface Node
- SourceLocator
- AttributeNode, CommentNode, ContainerNode, ElementNode, NodeBase, ProcessingInstructionNode, RootNode, TextNode
public interface Node
extends SourceLocator
represents a Node in an XML document
ALLTYPES
public static final byte ALLTYPES
ATTRIBUTE
public static final byte ATTRIBUTE
COMMENT
public static final byte COMMENT
ELEMENT
public static final byte ELEMENT
NAMESPACE
public static final byte NAMESPACE
N_TYPES
public static final int N_TYPES
PROCESSING_INSTRUCTION
public static final byte PROCESSING_INSTRUCTION
ROOT
public static final byte ROOT
TEXT
public static final byte TEXT
compareTo
public int compareTo(Node node)
also compares document order
getAttribute
public Node getAttribute(Name name)
does this only work on Elements?
getAttributeValue
public String getAttributeValue(Name name)
does this only work on Elements?
getAttributes
public SafeNodeIterator getAttributes()
does this only work on Elements?
getData
public String getData()
Returns text for TEXT node; value for attribute node;
content for comment node;
content after PI for PI node;
getElementWithId
public Node getElementWithId(String id)
finds an Element Node, in the this node's document,
with the given ID
getFollowingSiblings
public SafeNodeIterator getFollowingSiblings()
as the name implies ...
getGeneratedId
public String getGeneratedId()
guaranteed to be unique (and repeatable)
getLineNumber
public int getLineNumber()
if decorated with locator events, this returns the line number
in the XML source where this node was found
getName
public Name getName()
Returns element type name for element; attribute name for an attribute;
target for a PI., Namespace prefix for a Namespace
getNamespacePrefixMap
public NamespacePrefixMap getNamespacePrefixMap()
in-scope namespaces ??
getNamespaces
public SafeNodeIterator getNamespaces()
does this only work on Elements?
getParent
public Node getParent()
as the name implies ...
getRoot
public Node getRoot()
gets the owning Document's root
getType
public byte getType()
returns one of: ELEMENT, TEXT, ATTRIBUTE,
ROOT, PROCESSING_INSTRUCTION or COMMENT
getURL
public URL getURL()
base URL ??
getUnparsedEntityURI
public String getUnparsedEntityURI(String name)
isId
public boolean isId(String id)
if this is an attribute?? and it is of type ID ?