|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.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, NODE_LETTER, parent |
| Fields inherited from interface net.sf.saxon.om.NodeInfo |
ALL_NAMESPACES, EMPTY_NAMESPACE_LIST, IS_DTD_TYPE, LOCAL_NAMESPACES, NO_NAMESPACES |
| Fields inherited from interface net.sf.saxon.om.ValueRepresentation |
EMPTY_VALUE_ARRAY |
| Constructor Summary | |
DocumentImpl()
|
|
| Method Summary | |
void |
addChild(NodeImpl node,
int index)
Add a child node to this node. |
void |
compact(int size)
Compact the space used by this node |
void |
copy(Receiver out,
int whichNamespaces,
boolean copyAnnotations,
int locationId)
Copy this node to a given outputter |
AxisIterator |
enumerateChildren(NodeTest test)
Get an enumeration of the children of this node |
void |
generateId(FastStringBuffer buffer)
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 |
ElementImpl |
getDocumentElement()
Get the root (outermost) element. |
int |
getDocumentNumber()
Get the unique document number |
DocumentInfo |
getDocumentRoot()
Get the root (document) node |
NodeInfo |
getFirstChild()
Get the first child node of the element |
NodeInfo |
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 |
NodeInfo |
getNextSibling()
Get next sibling - always null |
int |
getNodeKind()
Return the type of node. |
protected NodeImpl |
getNthChild(int n)
Get the nth child node of the element (numbering from 0) |
NodeInfo |
getPreviousSibling()
Get previous sibling - always null |
NodeInfo |
getRoot()
Get the root node |
protected long |
getSequenceNumber()
Get the node sequence number (in document order). |
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.CharSequence |
getStringValueCS()
Get the string value of the item as a CharSequence. |
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 |
boolean |
hasChildNodes()
Determine if the node has any children. |
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 |
setLineNumbering()
Set line numbering on |
void |
setSystemId(java.lang.String uri)
Set the system id of this node |
void |
useChildrenArray(NodeImpl[] array)
Supply an array to be used for the array of children. |
| Methods inherited from class net.sf.saxon.tree.NodeImpl |
atomize, compareOrder, equals, getAttributeValue, getColumnNumber, getDeclaredNamespaces, getDisplayName, getFingerprint, getLocalPart, getNameCode, getNextInDocument, getParent, getPrefix, getPreviousInDocument, getPublicId, getTypeAnnotation, getTypedValue, getURI, hashCode, isSameNodeInfo, iterateAxis, iterateAxis, sendNamespaceDeclarations |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.saxon.om.NodeInfo |
atomize, compareOrder, equals, getAttributeValue, getDeclaredNamespaces, getDisplayName, getFingerprint, getLocalPart, getNameCode, getParent, getPrefix, getStringValue, getTypeAnnotation, getURI, hasChildNodes, hashCode, isSameNodeInfo, iterateAxis, iterateAxis, sendNamespaceDeclarations |
| Methods inherited from interface net.sf.saxon.om.Item |
getStringValueCS, getTypedValue |
| Field Detail |
protected int sequence
| Constructor Detail |
public DocumentImpl()
| Method Detail |
public void setConfiguration(Configuration config)
public Configuration getConfiguration()
getConfiguration in interface NodeInfogetConfiguration in class NodeImplpublic NamePool getNamePool()
getNamePool in interface NodeInfogetNamePool in class NodeImplpublic int getDocumentNumber()
getDocumentNumber in interface NodeInfogetDocumentNumber in class NodeImplpublic 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 NodeInfo getNextSibling()
getNextSibling in class NodeImplpublic final NodeInfo getPreviousSibling()
getPreviousSibling in class NodeImplpublic ElementImpl getDocumentElement()
public NodeInfo getRoot()
getRoot in interface NodeInfogetRoot in class NodeImplpublic DocumentInfo getDocumentRoot()
getDocumentRoot in interface NodeInfogetDocumentRoot in class NodeImplpublic void generateId(FastStringBuffer buffer)
generateId in interface NodeInfogenerateId in class NodeImplbuffer - a buffer into which will be placed a string based on the document numberpublic 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 void copy(Receiver out,
int whichNamespaces,
boolean copyAnnotations,
int locationId)
throws XPathException
copy in interface NodeInfoout - the Receiver to which the node should be copiedwhichNamespaces - in the case of an element, controls
which namespace nodes should be copied. Values are NodeInfo.NO_NAMESPACES,
NodeInfo.LOCAL_NAMESPACES, NodeInfo.ALL_NAMESPACEScopyAnnotations - indicates whether the type annotations
of element and attribute nodes should be copiedlocationId - If non-zero, identifies the location of the instruction
that requested this copy. If zero, indicates that the location information
for the original node is to be copied; in this case the Receiver must be
a LocationCopier
XPathExceptionprotected final long getSequenceNumber()
getSequenceNumber in class NodeImplpublic final boolean hasChildNodes()
hasChildNodes in interface NodeInfohasChildNodes 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 NodeInfo getFirstChild()
getFirstChild in class NodeImplpublic final NodeInfo getLastChild()
getLastChild in class NodeImplprotected final NodeImpl getNthChild(int n)
public java.lang.String getStringValue()
public java.lang.CharSequence getStringValueCS()
NodeImpl
getStringValueCS in interface ItemgetStringValueCS in class NodeImplpublic void useChildrenArray(NodeImpl[] array)
public void addChild(NodeImpl node,
int index)
public void compact(int size)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||