|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectnet.sf.saxon.tinytree.TinyNodeImpl
net.sf.saxon.tinytree.TinyParentNodeImpl
net.sf.saxon.tinytree.TinyDocumentImpl
public final class TinyDocumentImpl
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.tinytree.TinyNodeImpl |
|---|
NODE_LETTER, nodeNr, parent, tree |
| Fields inherited from interface net.sf.saxon.om.NodeInfo |
|---|
ALL_NAMESPACES, EMPTY_NAMESPACE_LIST, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACES |
| Fields inherited from interface net.sf.saxon.om.ValueRepresentation |
|---|
EMPTY_VALUE_ARRAY |
| Constructor Summary | |
|---|---|
TinyDocumentImpl(TinyTree tree)
|
|
| Method Summary | |
|---|---|
Value |
atomize()
Get the typed value. |
void |
copy(Receiver out,
int whichNamespaces,
boolean copyAnnotations,
int locationId)
Copy this node to a given outputter |
void |
generateId(FastStringBuffer buffer)
Get a character string that uniquely identifies this node |
String |
getBaseURI()
Get the base URI of this root node. |
Configuration |
getConfiguration()
Get the configuration previously set using setConfiguration |
DocumentInfo |
getDocumentRoot()
Get the root (document) node |
int |
getLineNumber()
Get the line number of this root node. |
int |
getNodeKind()
Return the type of node. |
NodeInfo |
getParent()
Find the parent node of this node. |
NodeInfo |
getRoot()
Get the root node |
String |
getSystemId()
Get the system id of this root node |
TinyTree |
getTree()
Get the tree containing this node |
int |
getTypeAnnotation()
Get the type annotation of this node, if any. |
SequenceIterator |
getTypedValue()
Get the typed value of the item. |
String[] |
getUnparsedEntity(String name)
Get the unparsed entity with a given nameID if there is one, or null if not. |
Iterator<String> |
getUnparsedEntityNames()
Get the list of unparsed entities defined in this document |
NodeInfo |
selectID(String id,
boolean getParent)
Get the element with a given ID. |
void |
setBaseURI(String uri)
Set the base URI of this document node |
void |
setConfiguration(Configuration config)
Set the Configuration that contains this document |
void |
setSystemId(String uri)
Set the system id of this node |
void |
showSize()
|
| Methods inherited from class net.sf.saxon.tinytree.TinyParentNodeImpl |
|---|
getStringValue, getStringValueCS, getStringValueCS, hasChildNodes |
| Methods inherited from class net.sf.saxon.tinytree.TinyNodeImpl |
|---|
compareOrder, equals, getAttributeValue, getColumnNumber, getDeclaredNamespaces, getDisplayName, getDocumentNumber, getFingerprint, getLocalPart, getNameCode, getNamePool, getNodeNumber, getPrefix, getPublicId, getSequenceNumber, getURI, hashCode, isAncestorOrSelf, isId, isIdref, isNilled, isSameNodeInfo, iterateAxis, iterateAxis, setParentNode |
| 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 |
|---|
compareOrder, equals, getAttributeValue, getColumnNumber, getDeclaredNamespaces, getDisplayName, getDocumentNumber, getFingerprint, getLocalPart, getNameCode, getNamePool, getPrefix, getStringValue, getURI, hasChildNodes, hashCode, isId, isIdref, isNilled, isSameNodeInfo, iterateAxis, iterateAxis |
| Methods inherited from interface net.sf.saxon.om.Item |
|---|
getStringValueCS |
| Constructor Detail |
|---|
public TinyDocumentImpl(TinyTree tree)
| Method Detail |
|---|
public TinyTree getTree()
getTree in class TinyNodeImplpublic void setConfiguration(Configuration config)
public Configuration getConfiguration()
getConfiguration in interface NodeInfogetConfiguration in class TinyNodeImplpublic void setSystemId(String uri)
setSystemId in interface SourcesetSystemId in class TinyNodeImplpublic String getSystemId()
getSystemId in interface SourcegetSystemId in interface SourceLocatorgetSystemId in interface NodeInfogetSystemId in class TinyNodeImplpublic void setBaseURI(String uri)
public String getBaseURI()
getBaseURI in interface NodeInfogetBaseURI in class TinyNodeImplpublic int getLineNumber()
getLineNumber in interface SourceLocatorgetLineNumber in interface NodeInfogetLineNumber in class TinyNodeImplpublic final int getNodeKind()
getNodeKind in interface NodeInfoTypepublic NodeInfo getParent()
getParent in interface NodeInfogetParent in class TinyNodeImplpublic NodeInfo getRoot()
getRoot in interface NodeInfogetRoot in class TinyNodeImplpublic DocumentInfo getDocumentRoot()
getDocumentRoot in interface NodeInfogetDocumentRoot in class TinyNodeImplpublic void generateId(FastStringBuffer buffer)
generateId in interface NodeInfogenerateId in class TinyNodeImplbuffer - to contain an identifier based on the document number
public Value atomize()
throws XPathException
Item.getTypedValue(). However, this method is often more convenient and may be
more efficient, especially in the common case where the value is expected to be a singleton.
atomize in interface NodeInfoXPathException
public SequenceIterator getTypedValue()
throws XPathException
getTypedValue in interface ItemXPathException - where no typed value is available, for example in the case of
an element with complex content
public NodeInfo selectID(String id,
boolean getParent)
selectID in interface DocumentInfoid - The unique ID of the required element, previously registered using registerID()getParent -
public Iterator<String> getUnparsedEntityNames()
getUnparsedEntityNames in interface DocumentInfopublic String[] getUnparsedEntity(String name)
getUnparsedEntity in interface DocumentInfoname - the name of the entity
public int getTypeAnnotation()
getTypeAnnotation in interface NodeInfogetTypeAnnotation in class TinyNodeImpl
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 copied. It is the caller's
responsibility to ensure that this Receiver is open before the method is called
(or that it is self-opening), and that it is closed after use.whichNamespaces - 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
XPathExceptionpublic void showSize()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||