public final class TinyDocumentImpl extends TinyParentNodeImpl
NODE_LETTER, nodeNr, parent, treeIS_DTD_TYPE, IS_NILLED| Constructor and Description | 
|---|
TinyDocumentImpl(TinyTree tree)  | 
| Modifier and Type | Method and Description | 
|---|---|
AtomicSequence | 
atomize()
Get the typed value. 
 | 
boolean | 
containsGraftedNodes()
Diagnostic method 
 | 
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 
 | 
java.lang.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. 
 | 
TinyNodeImpl | 
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. 
 | 
java.lang.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(java.lang.String uri)
Set the base URI of this document node 
 | 
void | 
setSystemId(java.lang.String uri)
Set the system id of this node 
 | 
void | 
showSize()  | 
getStringValue, getStringValueCS, getStringValueCS, hasChildNodescompareOrder, equals, getAttributeValue, getColumnNumber, getDeclaredNamespaces, getDisplayName, getFingerprint, getGenre, getLocalPart, getNamePool, getNodeNumber, getPrefix, getSequenceNumber, getTreeInfo, getURI, hasFingerprint, head, isAncestorOrSelf, isId, isIdref, isNilled, isSameNodeInfo, isStreamed, iterate, iterateAxis, iterateAxis, saveLocation, setParentNodeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetPublicId, toShortStringgetLength, itemAt, iterator, reduce, subsequence, toGroundedValueasIterable, effectiveBooleanValue, materializemakeRepeatablepublic TinyDocumentImpl(TinyTree tree)
public TinyTree getTree()
getTree in class TinyNodeImplpublic NodeInfo getRootNode()
public Configuration getConfiguration()
getConfiguration in interface NodeInfogetConfiguration in class TinyNodeImplgetTreeInfo().getConfiguration().public void setSystemId(java.lang.String uri)
setSystemId in interface javax.xml.transform.SourcesetSystemId in class TinyNodeImplpublic java.lang.String getSystemId()
getSystemId in interface javax.xml.transform.SourcegetSystemId in interface javax.xml.transform.SourceLocatorgetSystemId in interface LocationgetSystemId in interface NodeInfogetSystemId in interface org.xml.sax.LocatorgetSystemId in class TinyNodeImplpublic void setBaseURI(java.lang.String uri)
uri - the base URIpublic java.lang.String getBaseURI()
getBaseURI in interface NodeInfogetBaseURI in class TinyNodeImplpublic int getLineNumber()
getLineNumber in interface javax.xml.transform.SourceLocatorgetLineNumber in interface LocationgetLineNumber in interface NodeInfogetLineNumber in interface org.xml.sax.LocatorgetLineNumber in class TinyNodeImplpublic boolean isTyped()
public final int getNodeKind()
Typepublic TinyNodeImpl 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 TinyNodeImplpublic boolean containsGraftedNodes()
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.