|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.om.AbstractNode
net.sf.saxon.tree.NodeImpl
net.sf.saxon.tree.ParentNodeImpl
net.sf.saxon.tree.DocumentImpl
public final class DocumentImpl
A node in the XML parse tree representing the Document itself (or equivalently, the root node of the Document).
Field Summary |
---|
Fields inherited from class net.sf.saxon.tree.ParentNodeImpl |
---|
sequence |
Fields inherited from class net.sf.saxon.tree.NodeImpl |
---|
index, parent |
Fields inherited from class net.sf.saxon.om.AbstractNode |
---|
NODE_LETTER |
Fields inherited from interface net.sf.saxon.om.NodeInfo |
---|
ALL_NAMESPACES, LOCAL_NAMESPACES, NO_NAMESPACES |
Constructor Summary | |
---|---|
DocumentImpl()
|
Method Summary | |
---|---|
void |
copy(Receiver out,
int whichNamespaces)
Copy this node to a given outputter |
String |
generateId()
Get a character string that uniquely identifies this node |
protected AxisIterator |
getAllElements(int fingerprint)
Get a list of all elements with a given name fingerprint |
String |
getBaseURI()
Get the base URI of this root node. |
Element |
getDocumentElement()
Get the root (outermost) element. |
int |
getDocumentNumber()
Get the unique document number |
DocumentInfo |
getDocumentRoot()
Get the root (document) node |
int |
getLineNumber()
Get the line number of this root node. |
protected int |
getLineNumber(int sequence)
Get the line number for an element. |
NamePool |
getNamePool()
Get the name pool used for the names in this document |
Node |
getNextSibling()
Get next sibling - always null |
int |
getNodeKind()
Return the type of node. |
Node |
getPreviousSibling()
Get previous sibling - always null |
NodeInfo |
getRoot()
Get the root node |
String |
getSystemId()
Get the system id of this root node |
protected String |
getSystemId(int seq)
Get the system id of an element in the document |
String[] |
getUnparsedEntity(String name)
Get the unparsed entity with a given name |
NodeInfo |
selectID(String id)
Get the element with a given ID. |
protected void |
setDocumentElement(ElementImpl e)
Set the top-level element of the document (variously called the root element or the document element). |
protected void |
setLineNumber(int sequence,
int line)
Set the line number for an element. |
void |
setLineNumbering()
Set line numbering on |
void |
setNamePool(NamePool pool)
Set the name pool used for all names in this document |
protected void |
setSystemId(int seq,
String uri)
Set the system id of an element in the document |
void |
setSystemId(String uri)
Set the system id of this node |
protected void |
setUnparsedEntity(String name,
String uri,
String publicId)
Set an unparsed entity URI associated with this document. |
Methods inherited from class net.sf.saxon.tree.ParentNodeImpl |
---|
addChild, compact, enumerateChildren, getFirstChild, getLastChild, getNodeValue, getNthChild, getSequenceNumber, getStringValue, hasChildNodes, useChildrenArray |
Methods inherited from class net.sf.saxon.tree.NodeImpl |
---|
compareOrder, copy, getAttributeValue, getDisplayName, getFingerprint, getLocalPart, getNameCode, getNextInDocument, getOriginatingNode, getParent, getPrefix, getPreviousInDocument, getURI, hasAttributes, isSameNode, iterateAxis, iterateAxis, outputNamespaceNodes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.saxon.om.NodeInfo |
---|
compareOrder, copy, getAttributeValue, getDisplayName, getFingerprint, getLocalPart, getNameCode, getParent, getStringValue, getTypeAnnotation, getURI, hasChildNodes, isSameNode, iterateAxis, iterateAxis, outputNamespaceNodes |
Methods inherited from interface net.sf.saxon.om.Item |
---|
getTypedValue |
Methods inherited from interface org.w3c.dom.Node |
---|
appendChild, cloneNode, compareDocumentPosition, getAttributes, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
Constructor Detail |
---|
public DocumentImpl()
Method Detail |
---|
public void setNamePool(NamePool pool)
setNamePool
in interface DocumentInfo
pool
- The name pool to be usedpublic NamePool getNamePool()
getNamePool
in interface DocumentInfo
getNamePool
in interface NodeInfo
getNamePool
in class NodeImpl
public int getDocumentNumber()
getDocumentNumber
in interface DocumentInfo
getDocumentNumber
in interface NodeInfo
getDocumentNumber
in class AbstractNode
protected void setDocumentElement(ElementImpl e)
e
- the top-level elementpublic void setSystemId(String uri)
setSystemId
in interface Source
setSystemId
in class NodeImpl
public String getSystemId()
getSystemId
in interface Source
getSystemId
in interface SourceLocator
getSystemId
in interface NodeInfo
getSystemId
in class NodeImpl
public String getBaseURI()
getBaseURI
in interface NodeInfo
getBaseURI
in interface Node
getBaseURI
in class NodeImpl
protected void setSystemId(int seq, String uri)
protected String getSystemId(int seq)
public void setLineNumbering()
protected void setLineNumber(int sequence, int line)
protected int getLineNumber(int sequence)
public int getLineNumber()
getLineNumber
in interface SourceLocator
getLineNumber
in interface NodeInfo
getLineNumber
in class NodeImpl
public final int getNodeKind()
getNodeKind
in interface NodeInfo
Type
public final Node getNextSibling()
getNextSibling
in interface Node
getNextSibling
in class NodeImpl
public final Node getPreviousSibling()
getPreviousSibling
in interface Node
getPreviousSibling
in class NodeImpl
public Element getDocumentElement()
getDocumentElement
in interface Document
getDocumentElement
in class NodeImpl
public NodeInfo getRoot()
getRoot
in interface NodeInfo
getRoot
in class NodeImpl
public DocumentInfo getDocumentRoot()
getDocumentRoot
in interface NodeInfo
getDocumentRoot
in class NodeImpl
public String generateId()
generateId
in interface NodeInfo
generateId
in class NodeImpl
protected AxisIterator getAllElements(int fingerprint)
public NodeInfo selectID(String id)
selectID
in interface DocumentInfo
id
- The unique ID of the required element, previously registered using registerID()
protected void setUnparsedEntity(String name, String uri, String publicId)
public String[] getUnparsedEntity(String name)
getUnparsedEntity
in interface DocumentInfo
name
- the name of the entity
public void copy(Receiver out, int whichNamespaces) throws TransformerException
copy
in class NodeImpl
TransformerException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |