|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jclark.xsl.dom.NodeBase
abstract class NodeBase
Base class wrapper which presents our xt om Node interface around a W3C Level 1 DOM node
| Field Summary | |
|---|---|
(package private) org.w3c.dom.Node |
domNode
|
(package private) int |
level
|
(package private) ContainerNode |
parent
|
(package private) RootNode |
root
|
| Fields inherited from interface com.jclark.xsl.om.Node |
|---|
ALLTYPES, ATTRIBUTE, COMMENT, ELEMENT, N_TYPES, NAMESPACE, PROCESSING_INSTRUCTION, ROOT, TEXT |
| Constructor Summary | |
|---|---|
NodeBase(org.w3c.dom.Node domNode)
|
|
NodeBase(org.w3c.dom.Node domNode,
ContainerNode parent,
int childIndex)
|
|
| Method Summary | |
|---|---|
int |
compareTo(Node node)
also compares document order |
boolean |
equals(java.lang.Object obj)
|
Node |
getAttribute(Name name)
default behavior -- return null. |
SafeNodeIterator |
getAttributes()
does this only work on Elements? |
java.lang.String |
getAttributeValue(Name name)
default behavior -- return null. |
SafeNodeIterator |
getChildren()
as the name implies ... |
int |
getColumnNumber()
|
java.lang.String |
getData()
default behavior -- return null. |
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()
default behavior -- return null. |
NamespacePrefixMap |
getNamespacePrefixMap()
in-scope namespaces ?? |
SafeNodeIterator |
getNamespaces()
does this only work on Elements? |
Node |
getParent()
as the name implies ... |
java.lang.String |
getPublicId()
|
Node |
getRoot()
gets the owning Document's root |
java.lang.String |
getSystemId()
|
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 class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.jclark.xsl.om.Node |
|---|
getType |
| Field Detail |
|---|
final org.w3c.dom.Node domNode
int level
ContainerNode parent
RootNode root
| Constructor Detail |
|---|
NodeBase(org.w3c.dom.Node domNode)
NodeBase(org.w3c.dom.Node domNode,
ContainerNode parent,
int childIndex)
| Method Detail |
|---|
public Node getParent()
Node
getParent in interface Nodepublic java.lang.String getGeneratedId()
Node
getGeneratedId in interface Nodepublic int compareTo(Node node)
Node
compareTo in interface Nodepublic java.lang.String getData()
getData in interface Nodepublic Name getName()
getName in interface Nodepublic java.lang.String getAttributeValue(Name name)
getAttributeValue in interface Nodepublic Node getAttribute(Name name)
getAttribute in interface Nodepublic Node getElementWithId(java.lang.String id)
Node
getElementWithId in interface Nodepublic boolean isId(java.lang.String id)
Node
isId in interface Nodepublic NamespacePrefixMap getNamespacePrefixMap()
Node
getNamespacePrefixMap in interface Nodepublic java.lang.String getUnparsedEntityURI(java.lang.String name)
getUnparsedEntityURI in interface Nodepublic SafeNodeIterator getChildren()
Node
getChildren in interface Nodepublic SafeNodeIterator getAttributes()
Node
getAttributes in interface Nodepublic SafeNodeIterator getNamespaces()
Node
getNamespaces in interface Nodepublic java.net.URL getURL()
Node
getURL in interface Nodepublic java.lang.String getSystemId()
getSystemId in interface javax.xml.transform.SourceLocatorpublic java.lang.String getPublicId()
getPublicId in interface javax.xml.transform.SourceLocatorpublic int getLineNumber()
Node
getLineNumber in interface NodegetLineNumber in interface javax.xml.transform.SourceLocatorpublic int getColumnNumber()
getColumnNumber in interface javax.xml.transform.SourceLocatorpublic SafeNodeIterator getFollowingSiblings()
Node
getFollowingSiblings in interface Nodepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic Node getRoot()
Node
getRoot in interface Node
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||