com.jclark.xsl.dom

Class RootNode

Implemented Interfaces:
Node, SourceLocator

(package private) class RootNode
extends ContainerNode

Field Summary

(package private) URL
baseURL
(package private) int
documentIndex
(package private) boolean
includeComments
(package private) boolean
includeProcessingInstructions
(package private) LoadContext
loadContext
(package private) NameTable
nameTable
(package private) org.w3c.dom.Document
ownerDocument

Fields inherited from class com.jclark.xsl.dom.ContainerNode

prefixMap, preserveSpace

Fields inherited from class com.jclark.xsl.dom.NodeBase

domNode, level, parent, root

Fields inherited from interface com.jclark.xsl.om.Node

ALLTYPES, ATTRIBUTE, COMMENT, ELEMENT, N_TYPES, PROCESSING_INSTRUCTION, ROOT, TEXT

Constructor Summary

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

Method Summary

(package private) int
compareRootTo(RootNode 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)
byte
getType()
returns one of: ELEMENT, TEXT, ATTRIBUTE, ROOT, PROCESSING_INSTRUCTION or COMMENT
URL
getURL()
base URL ??
String
getUnparsedEntityURI(String name)
(package private) boolean
isId(org.w3c.dom.Node node, String id)

Methods inherited from class com.jclark.xsl.dom.ContainerNode

getChildren, getNamespacePrefixMap, getPreserveSpace, getUnparsedEntityURI

Methods inherited from class com.jclark.xsl.dom.NodeBase

compareTo, equals, getAttribute, getAttributeValue, getAttributes, getChildren, getColumnNumber, getData, getElementWithId, getFollowingSiblings, getGeneratedId, getLineNumber, getName, getNamespacePrefixMap, getParent, getPublicId, getRoot, getSystemId, getURL, getUnparsedEntityURI, isId

Field Details

baseURL

(package private)  URL baseURL

documentIndex

(package private)  int documentIndex

includeComments

(package private)  boolean includeComments

includeProcessingInstructions

(package private)  boolean includeProcessingInstructions

loadContext

(package private)  LoadContext loadContext

nameTable

(package private)  NameTable nameTable

ownerDocument

(package private)  org.w3c.dom.Document ownerDocument

Constructor Details

RootNode

(package private)  RootNode(org.w3c.dom.Node node,
                            DOMExtensions extend,
                            LoadContext loadContext,
                            NameTable nameTable,
                            String baseURL,
                            int documentIndex)

Method Details

compareRootTo

(package private)  int compareRootTo(RootNode node)

getElementWithId

public Node getElementWithId(String id)
finds an Element Node, in the this node's document, with the given ID
Specified by:
getElementWithId in interface Node
Overrides:
getElementWithId in interface NodeBase

getFollowingSiblings

public SafeNodeIterator getFollowingSiblings()
as the name implies ...
Specified by:
getFollowingSiblings in interface Node
Overrides:
getFollowingSiblings in interface NodeBase

getGeneratedId

public String getGeneratedId()
guaranteed to be unique (and repeatable)
Specified by:
getGeneratedId in interface Node
Overrides:
getGeneratedId in interface NodeBase

getType

public byte getType()
returns one of: ELEMENT, TEXT, ATTRIBUTE, ROOT, PROCESSING_INSTRUCTION or COMMENT
Specified by:
getType in interface Node

getURL

public URL getURL()
base URL ??
Specified by:
getURL in interface Node
Overrides:
getURL in interface NodeBase

getUnparsedEntityURI

public String getUnparsedEntityURI(String name)
Specified by:
getUnparsedEntityURI in interface Node
Overrides:
getUnparsedEntityURI in interface ContainerNode

isId

(package private)  boolean isId(org.w3c.dom.Node node,
                                String id)