com.jclark.xsl.dom
Class RootNode

java.lang.Object
  extended bycom.jclark.xsl.dom.NodeBase
      extended bycom.jclark.xsl.dom.ContainerNode
          extended bycom.jclark.xsl.dom.RootNode
All Implemented Interfaces:
Node, javax.xml.transform.SourceLocator

class RootNode
extends ContainerNode


Field Summary
(package private)  java.net.URL baseURL
           
(package private)  int documentIndex
           
(package private)  org.w3c.dom.Node domNode
           
(package private)  boolean includeComments
           
(package private)  boolean includeProcessingInstructions
           
(package private)  int level
           
(package private)  LoadContext loadContext
           
(package private)  NameTable nameTable
           
(package private)  org.w3c.dom.Document ownerDocument
           
(package private)  ContainerNode parent
           
(package private)  NamespacePrefixMap prefixMap
           
(package private)  boolean preserveSpace
           
(package private)  RootNode root
           
 
Fields inherited from interface com.jclark.xsl.om.Node
ALLTYPES, ATTRIBUTE, COMMENT, ELEMENT, N_TYPES, PROCESSING_INSTRUCTION, ROOT, TEXT
 
Constructor Summary
(package private) RootNode(org.w3c.dom.Node node, DOMExtensions extend, LoadContext loadContext, NameTable nameTable, java.lang.String baseURL, int documentIndex)
           
 
Method Summary
(package private)  int compareRootTo(RootNode node)
           
 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 ??
 Node getParent()
          as the name implies ...
 boolean getPreserveSpace()
           
 java.lang.String getPublicId()
           
 Node getRoot()
          gets the owning Document's root
 java.lang.String getSystemId()
           
 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 ??
(package private)  boolean isId(org.w3c.dom.Node node, java.lang.String id)
           
 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
 

Field Detail

ownerDocument

org.w3c.dom.Document ownerDocument

nameTable

NameTable nameTable

documentIndex

int documentIndex

baseURL

java.net.URL baseURL

loadContext

LoadContext loadContext

includeComments

boolean includeComments

includeProcessingInstructions

boolean includeProcessingInstructions

prefixMap

NamespacePrefixMap prefixMap

preserveSpace

boolean preserveSpace

domNode

final org.w3c.dom.Node domNode

level

int level

parent

ContainerNode parent

root

RootNode root
Constructor Detail

RootNode

RootNode(org.w3c.dom.Node node,
         DOMExtensions extend,
         LoadContext loadContext,
         NameTable nameTable,
         java.lang.String baseURL,
         int documentIndex)
Method Detail

compareRootTo

int compareRootTo(RootNode node)

getType

public byte getType()
Description copied from interface: Node
returns one of: ELEMENT, TEXT, ATTRIBUTE, ROOT, PROCESSING_INSTRUCTION or COMMENT


getURL

public java.net.URL getURL()
Description copied from interface: Node
base URL ??

Specified by:
getURL in interface Node
Overrides:
getURL in class NodeBase

getUnparsedEntityURI

public java.lang.String getUnparsedEntityURI(java.lang.String name)
Specified by:
getUnparsedEntityURI in interface Node
Overrides:
getUnparsedEntityURI in class ContainerNode

isId

boolean isId(org.w3c.dom.Node node,
             java.lang.String id)

getElementWithId

public Node getElementWithId(java.lang.String id)
Description copied from interface: Node
finds an Element Node, in the this node's document, with the given ID

Specified by:
getElementWithId in interface Node
Overrides:
getElementWithId in class NodeBase

getGeneratedId

public java.lang.String getGeneratedId()
Description copied from interface: Node
guaranteed to be unique (and repeatable)

Specified by:
getGeneratedId in interface Node
Overrides:
getGeneratedId in class NodeBase

getFollowingSiblings

public SafeNodeIterator getFollowingSiblings()
Description copied from interface: Node
as the name implies ...

Specified by:
getFollowingSiblings in interface Node
Overrides:
getFollowingSiblings in class NodeBase

getPreserveSpace

public boolean getPreserveSpace()

getChildren

public SafeNodeIterator getChildren()
Description copied from interface: Node
as the name implies ...

Specified by:
getChildren in interface Node
Overrides:
getChildren in class NodeBase

getNamespacePrefixMap

public final NamespacePrefixMap getNamespacePrefixMap()
Description copied from interface: Node
in-scope namespaces ??

Specified by:
getNamespacePrefixMap in interface Node
Overrides:
getNamespacePrefixMap in class NodeBase

getParent

public Node getParent()
Description copied from interface: Node
as the name implies ...

Specified by:
getParent in interface Node

compareTo

public int compareTo(Node node)
Description copied from interface: Node
also compares document order

Specified by:
compareTo in interface Node

getData

public java.lang.String getData()
default behavior -- return null. Descendant classes override

Specified by:
getData in interface Node

getName

public Name getName()
default behavior -- return null. Descendant classes override

Specified by:
getName in interface Node

getAttributeValue

public java.lang.String getAttributeValue(Name name)
default behavior -- return null. Descendant classes override

Specified by:
getAttributeValue in interface Node

getAttribute

public Node getAttribute(Name name)
default behavior -- return null. Descendant classes override

Specified by:
getAttribute in interface Node

isId

public boolean isId(java.lang.String id)
Description copied from interface: Node
if this is an attribute?? and it is of type ID ?

Specified by:
isId in interface Node

getAttributes

public SafeNodeIterator getAttributes()
Description copied from interface: Node
does this only work on Elements?

Specified by:
getAttributes in interface Node

getSystemId

public java.lang.String getSystemId()
Specified by:
getSystemId in interface javax.xml.transform.SourceLocator

getPublicId

public java.lang.String getPublicId()
Specified by:
getPublicId in interface javax.xml.transform.SourceLocator

getLineNumber

public int getLineNumber()
Description copied from interface: Node
if decorated with locator events, this returns the line number in the XML source where this node was found

Specified by:
getLineNumber in interface Node

getColumnNumber

public int getColumnNumber()
Specified by:
getColumnNumber in interface javax.xml.transform.SourceLocator

equals

public boolean equals(java.lang.Object obj)

getRoot

public Node getRoot()
Description copied from interface: Node
gets the owning Document's root

Specified by:
getRoot in interface Node