com.jclark.xsl.dom
Class NodeBase
java.lang.Object
com.jclark.xsl.dom.NodeBase
- Node, SourceLocator
public abstract class NodeBase
extends java.lang.Object
Base class wrapper which presents our xt om Node
interface around a W3C Level 1 DOM node
domNode
public final org.w3c.dom.Node domNode
level
(package private) int level
NodeBase
(package private) NodeBase(org.w3c.dom.Node domNode)
NodeBase
(package private) NodeBase(org.w3c.dom.Node domNode,
ContainerNode parent,
int childIndex)
compareTo
public int compareTo(Node node)
also compares document order
- compareTo in interface Node
equals
public boolean equals(Object obj)
getAttribute
public Node getAttribute(Name name)
default behavior -- return null. Descendant classes override
- getAttribute in interface Node
getAttributeValue
public String getAttributeValue(Name name)
default behavior -- return null. Descendant classes override
- getAttributeValue in interface Node
getColumnNumber
public int getColumnNumber()
getData
public String getData()
default behavior -- return null. Descendant classes override
- getData in interface Node
getElementWithId
public Node getElementWithId(String id)
finds an Element Node, in the this node's document,
with the given ID
- getElementWithId in interface Node
getGeneratedId
public String getGeneratedId()
guaranteed to be unique (and repeatable)
- getGeneratedId in interface Node
getLineNumber
public int getLineNumber()
if decorated with locator events, this returns the line number
in the XML source where this node was found
- getLineNumber in interface Node
getName
public Name getName()
default behavior -- return null. Descendant classes override
- getName in interface Node
getPublicId
public String getPublicId()
getRoot
public Node getRoot()
gets the owning Document's root
- getRoot in interface Node
getSystemId
public String getSystemId()
getURL
public URL getURL()
base URL ??
- getURL in interface Node
isId
public boolean isId(String id)
if this is an attribute?? and it is of type ID ?
- isId in interface Node