|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--net.sf.saxon.om.AbstractNode
|
+--net.sf.saxon.tree.NodeImpl
|
+--net.sf.saxon.tree.ParentNodeImpl
|
+--net.sf.saxon.tree.DocumentImpl
A node in the XML parse tree representing the Document itself (or equivalently, the root node of the Document).
| Field Summary | |
protected int |
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 |
| Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
| Constructor Summary | |
DocumentImpl()
|
|
| Method Summary | |
void |
addChild(NodeImpl node,
int index)
Add a child node to this node. |
org.w3c.dom.Node |
adoptNode(org.w3c.dom.Node source)
|
void |
compact(int size)
Compact the space used by this node |
void |
copy(Receiver out,
int whichNamespaces)
Copy this node to a given outputter |
AxisIterator |
enumerateChildren(NodeTest test)
Get an enumeration of the children of this node |
java.lang.String |
generateId()
Get a character string that uniquely identifies this node |
java.lang.String |
getBaseURI()
Get the base URI of this root node. |
Configuration |
getConfiguration()
Get the configuration previously set using setConfiguration |
org.w3c.dom.Element |
getDocumentElement()
Get the root (outermost) element. |
int |
getDocumentNumber()
Get the unique document number |
DocumentInfo |
getDocumentRoot()
Get the root (document) node |
java.lang.String |
getDocumentURI()
|
org.w3c.dom.Node |
getFirstChild()
Get the first child node of the element |
java.lang.String |
getInputEncoding()
The following methods are defined in DOM Level 3, and Saxon includes nominal implementations of these methods so that the code will compile when DOM Level 3 interfaces are installed. |
org.w3c.dom.Node |
getLastChild()
Get the last child node of the element |
int |
getLineNumber()
Get the line number of this root node. |
NamePool |
getNamePool()
Get the name pool used for the names in this document |
org.w3c.dom.Node |
getNextSibling()
Get next sibling - always null |
int |
getNodeKind()
Return the type of node. |
java.lang.String |
getNodeValue()
Get the node value as defined in the DOM. |
protected NodeImpl |
getNthChild(int n)
Get the nth child node of the element (numbering from 0) |
org.w3c.dom.Node |
getPreviousSibling()
Get previous sibling - always null |
NodeInfo |
getRoot()
Get the root node |
protected long |
getSequenceNumber()
Get the node sequence number (in document order). |
boolean |
getStrictErrorChecking()
|
java.lang.String |
getStringValue()
Return the string-value of the node, that is, the concatenation of the character content of all descendent elements and text nodes. |
java.lang.String |
getSystemId()
Get the system id of this root node |
java.lang.String[] |
getUnparsedEntity(java.lang.String name)
Get the unparsed entity with a given name |
java.lang.String |
getXmlEncoding()
|
boolean |
getXmlStandalone()
|
java.lang.String |
getXmlVersion()
|
boolean |
hasChildNodes()
Determine if the node has any children. |
void |
normalizeDocument()
|
org.w3c.dom.Node |
renameNode(org.w3c.dom.Node n,
java.lang.String namespaceURI,
java.lang.String qualifiedName)
|
NodeInfo |
selectID(java.lang.String id)
Get the element with a given ID. |
void |
setConfiguration(Configuration config)
Set the Configuration that contains this document |
void |
setDocumentURI(java.lang.String documentURI)
|
void |
setLineNumbering()
Set line numbering on |
void |
setStrictErrorChecking(boolean strictErrorChecking)
|
void |
setSystemId(java.lang.String uri)
Set the system id of this node |
void |
setXmlStandalone(boolean xmlStandalone)
|
void |
setXmlVersion(java.lang.String xmlVersion)
|
void |
useChildrenArray(NodeImpl[] array)
Supply an array to be used for the array of children. |
| Methods inherited from class net.sf.saxon.tree.NodeImpl |
compareOrder, copy, getAttributeValue, getDisplayName, getFingerprint, getLocalPart, getNameCode, getNextInDocument, getOriginatingNode, getParent, getPrefix, getPreviousInDocument, getURI, hasAttributes, isSameNodeInfo, 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, isSameNodeInfo, iterateAxis, iterateAxis, outputNamespaceNodes |
| Methods inherited from interface net.sf.saxon.om.Item |
getTypedValue |
| Methods inherited from interface org.w3c.dom.Document |
createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, getDoctype, getElementById, getElementsByTagName, getElementsByTagNameNS, getImplementation, importNode |
| Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
| Field Detail |
protected int sequence
| Constructor Detail |
public DocumentImpl()
| Method Detail |
public void setConfiguration(Configuration config)
setConfiguration in interface DocumentInfoconfig - The configuration to be usedpublic Configuration getConfiguration()
getConfiguration in interface DocumentInfopublic NamePool getNamePool()
getNamePool in interface DocumentInfogetNamePool in class NodeImplpublic int getDocumentNumber()
getDocumentNumber in interface DocumentInfogetDocumentNumber in class AbstractNodepublic void setSystemId(java.lang.String uri)
setSystemId in interface javax.xml.transform.SourcesetSystemId in class NodeImplpublic java.lang.String getSystemId()
getSystemId in interface NodeInfogetSystemId in class NodeImplpublic java.lang.String getBaseURI()
getBaseURI in interface NodeInfogetBaseURI in class NodeImplpublic void setLineNumbering()
public int getLineNumber()
getLineNumber in interface NodeInfogetLineNumber in class NodeImplpublic final int getNodeKind()
getNodeKind in interface NodeInfoTypepublic final org.w3c.dom.Node getNextSibling()
getNextSibling in interface org.w3c.dom.NodegetNextSibling in class NodeImplpublic final org.w3c.dom.Node getPreviousSibling()
getPreviousSibling in interface org.w3c.dom.NodegetPreviousSibling in class NodeImplpublic org.w3c.dom.Element getDocumentElement()
getDocumentElement in interface org.w3c.dom.DocumentgetDocumentElement in class NodeImplpublic NodeInfo getRoot()
getRoot in interface NodeInfogetRoot in class NodeImplpublic DocumentInfo getDocumentRoot()
getDocumentRoot in interface NodeInfogetDocumentRoot in class NodeImplpublic java.lang.String generateId()
generateId in interface NodeInfogenerateId in class NodeImplpublic NodeInfo selectID(java.lang.String id)
selectID in interface DocumentInfoid - The unique ID of the required element, previously registered using registerID()
public java.lang.String[] getUnparsedEntity(java.lang.String name)
getUnparsedEntity in interface DocumentInfoname - the name of the entity
public java.lang.String getInputEncoding()
public java.lang.String getXmlEncoding()
public boolean getXmlStandalone()
public void setXmlStandalone(boolean xmlStandalone)
throws org.w3c.dom.DOMException
org.w3c.dom.DOMExceptionpublic java.lang.String getXmlVersion()
public void setXmlVersion(java.lang.String xmlVersion)
throws org.w3c.dom.DOMException
org.w3c.dom.DOMExceptionpublic boolean getStrictErrorChecking()
public void setStrictErrorChecking(boolean strictErrorChecking)
public java.lang.String getDocumentURI()
public void setDocumentURI(java.lang.String documentURI)
public org.w3c.dom.Node adoptNode(org.w3c.dom.Node source)
throws org.w3c.dom.DOMException
org.w3c.dom.DOMExceptionpublic void normalizeDocument()
public org.w3c.dom.Node renameNode(org.w3c.dom.Node n,
java.lang.String namespaceURI,
java.lang.String qualifiedName)
throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public void copy(Receiver out,
int whichNamespaces)
throws XPathException
copy in class NodeImplXPathExceptionprotected final long getSequenceNumber()
getSequenceNumber in class NodeImplpublic final boolean hasChildNodes()
hasChildNodes in interface org.w3c.dom.NodehasChildNodes in class NodeImpltrue if the node has any children,
false if the node has no children.public final AxisIterator enumerateChildren(NodeTest test)
test - A NodeTest to be satisfied by the child nodes, or null
if all child node are to be returnedpublic final org.w3c.dom.Node getFirstChild()
getFirstChild in interface org.w3c.dom.NodegetFirstChild in class NodeImplpublic final org.w3c.dom.Node getLastChild()
getLastChild in interface org.w3c.dom.NodegetLastChild in class NodeImplprotected final NodeImpl getNthChild(int n)
public java.lang.String getStringValue()
getStringValue in interface NodeInfogetStringValue in class AbstractNodepublic void useChildrenArray(NodeImpl[] array)
public void addChild(NodeImpl node,
int index)
public void compact(int size)
public java.lang.String getNodeValue()
getNodeValue in interface org.w3c.dom.NodegetNodeValue in class AbstractNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||