public final class TinyDocumentImpl extends TinyParentNodeImpl
NODE_LETTER, nodeNr, parent, tree
ALL_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, hasChildNodes
compareOrder, 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, setParentNode
public TinyDocumentImpl(TinyTree tree)
public TinyTree getTree()
getTree
in class TinyNodeImpl
public NodeInfo getRootNode()
public Configuration getConfiguration()
getConfiguration
in interface FingerprintedNode
getConfiguration
in interface NodeInfo
getConfiguration
in class TinyNodeImpl
public void setSystemId(String uri)
setSystemId
in interface Source
setSystemId
in class TinyNodeImpl
public String getSystemId()
getSystemId
in interface Source
getSystemId
in interface SourceLocator
getSystemId
in interface Location
getSystemId
in interface NodeInfo
getSystemId
in interface Locator
getSystemId
in class TinyNodeImpl
public void setBaseURI(String uri)
uri
- the base URIpublic String getBaseURI()
getBaseURI
in interface NodeInfo
getBaseURI
in class TinyNodeImpl
public int getLineNumber()
getLineNumber
in interface SourceLocator
getLineNumber
in interface Location
getLineNumber
in interface NodeInfo
getLineNumber
in interface Locator
getLineNumber
in class TinyNodeImpl
public boolean isTyped()
public final int getNodeKind()
Type
public NodeInfo getParent()
getParent
in interface NodeInfo
getParent
in class TinyNodeImpl
public NodeInfo getRoot()
getRoot
in interface NodeInfo
getRoot
in class TinyNodeImpl
public void generateId(FastStringBuffer buffer)
generateId
in interface NodeInfo
generateId
in class TinyNodeImpl
buffer
- 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 NodeInfo
getSchemaType
in class TinyNodeImpl
public 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 CopyOptions
locationId
- 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 NodeInfo
hashCode
in class TinyNodeImpl
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.