|
|||||||||
| 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 DocumentInfopool - The name pool to be usedpublic NamePool getNamePool()
getNamePool in interface DocumentInfogetNamePool in interface NodeInfogetNamePool in class NodeImplpublic int getDocumentNumber()
getDocumentNumber in interface DocumentInfogetDocumentNumber in interface NodeInfogetDocumentNumber in class AbstractNodeprotected void setDocumentElement(ElementImpl e)
e - the top-level elementpublic void setSystemId(String uri)
setSystemId in interface SourcesetSystemId in class NodeImplpublic String getSystemId()
getSystemId in interface SourcegetSystemId in interface SourceLocatorgetSystemId in interface NodeInfogetSystemId in class NodeImplpublic String getBaseURI()
getBaseURI in interface NodeInfogetBaseURI in interface NodegetBaseURI 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 SourceLocatorgetLineNumber in interface NodeInfogetLineNumber in class NodeImplpublic final int getNodeKind()
getNodeKind in interface NodeInfoTypepublic final Node getNextSibling()
getNextSibling in interface NodegetNextSibling in class NodeImplpublic final Node getPreviousSibling()
getPreviousSibling in interface NodegetPreviousSibling in class NodeImplpublic Element getDocumentElement()
getDocumentElement in interface DocumentgetDocumentElement in class NodeImplpublic NodeInfo getRoot()
getRoot in interface NodeInfogetRoot in class NodeImplpublic DocumentInfo getDocumentRoot()
getDocumentRoot in interface NodeInfogetDocumentRoot in class NodeImplpublic String generateId()
generateId in interface NodeInfogenerateId in class NodeImplprotected AxisIterator getAllElements(int fingerprint)
public NodeInfo selectID(String id)
selectID in interface DocumentInfoid - 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 DocumentInfoname - the name of the entity
public void copy(Receiver out,
int whichNamespaces)
throws TransformerException
copy in class NodeImplTransformerException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||