public final class TinyDocumentImpl extends TinyParentNodeImpl
NODE_LETTER, nodeNr, parent, treeALL_NAMESPACES, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACES| Constructor and Description |
|---|
TinyDocumentImpl(TinyTree tree) |
| Modifier and Type | Method and Description |
|---|---|
AtomicSequence |
atomize()
Get the typed value.
|
void |
copy(Receiver out,
int copyOptions,
Location 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
|
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
|
NodeInfo |
getRootNode()
Get the NodeInfo object representing the document node at the root of the tree
|
SchemaType |
getSchemaType()
Get the type annotation of this node, if any.
|
String |
getSystemId()
Get the system id of this root node
|
TinyTree |
getTree()
Get the tree containing this node
|
int |
hashCode()
The hashCode() method obeys the contract for hashCode(): that is, if two objects are equal
(represent the same node) then they must have the same hashCode()
|
boolean |
isTyped()
Ask whether the document contains any nodes whose type annotation is anything other than
UNTYPED
|
void |
setBaseURI(String uri)
Set the base URI of this document node
|
void |
setSystemId(String uri)
Set the system id of this node
|
void |
showSize() |
getStringValue, getStringValueCS, getStringValueCS, hasChildNodescompareOrder, comparePosition, equals, getAttributeValue, getAttributeValue, getColumnNumber, getDeclaredNamespaces, getDisplayName, getFingerprint, getLocalPart, getNameCode, getNamePool, getNodeNumber, getPrefix, getPublicId, getSequenceNumber, getTreeInfo, getURI, head, isAncestorOrSelf, isId, isIdref, isNilled, isSameNodeInfo, iterate, iterateAxis, iterateAxis, saveLocation, setParentNodepublic TinyDocumentImpl(TinyTree tree)
public TinyTree getTree()
getTree in class TinyNodeImplpublic NodeInfo getRootNode()
public Configuration getConfiguration()
getConfiguration in interface FingerprintedNodegetConfiguration 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 LocationgetSystemId in interface NodeInfogetSystemId in interface LocatorgetSystemId in class TinyNodeImplpublic void setBaseURI(String uri)
uri - the base URIpublic String getBaseURI()
getBaseURI in interface NodeInfogetBaseURI in class TinyNodeImplpublic int getLineNumber()
getLineNumber in interface SourceLocatorgetLineNumber in interface LocationgetLineNumber in interface NodeInfogetLineNumber in interface LocatorgetLineNumber in class TinyNodeImplpublic boolean isTyped()
public final int getNodeKind()
Typepublic NodeInfo getParent()
getParent in interface NodeInfogetParent in class TinyNodeImplpublic NodeInfo getRoot()
getRoot in interface NodeInfogetRoot in class TinyNodeImplpublic void generateId(FastStringBuffer buffer)
generateId in interface NodeInfogenerateId in class TinyNodeImplbuffer - to contain an identifier based on the document numberpublic AtomicSequence atomize() throws XPathException
XPathException - if the node has no typed value, for example if
it is an element node with element-only contentpublic SchemaType getSchemaType()
Types derived from a DTD are not reflected in the result of this method.
getSchemaType in interface NodeInfogetSchemaType in class TinyNodeImplpublic void copy(Receiver out, int copyOptions, Location locationId) throws XPathException
out - 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.copyOptions - a selection of the options defined in CopyOptionslocationId - If non-null, identifies the location of the instruction
that requested this copy. If zero, indicates that the location information
is not availableXPathException - if any downstream error occurspublic void showSize()
public int hashCode()
hashCode in interface NodeInfohashCode in class TinyNodeImplCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.