public final class TinyDocumentImpl extends TinyNodeImpl implements DocumentInfo
NODE_LETTER, nodeNr, parent, tree
ALL_NAMESPACES, EMPTY_NAMESPACE_LIST, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACES
EMPTY_VALUE_ARRAY
?????? |
---|
TinyDocumentImpl(TinyTree tree) |
?????? | ????? |
---|---|
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
|
java.lang.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
|
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.
|
static java.lang.CharSequence |
getStringValue(TinyTree tree,
int nodeNr)
Get the string value of a node.
|
java.lang.CharSequence |
getStringValueCS()
Get the value of the item as a CharSequence.
|
java.lang.String |
getSystemId()
Get the system id of this root node
|
TinyTree |
getTree()
Get the tree containing this node
|
java.lang.String[] |
getUnparsedEntity(java.lang.String name)
Get the unparsed entity with a given nameID if there is one, or null if not.
|
java.util.Iterator |
getUnparsedEntityNames()
Get the list of unparsed entities defined in this document
|
boolean |
hasChildNodes()
Determine if the node has children.
|
NodeInfo |
selectID(java.lang.String id)
Get the element with a given ID.
|
void |
setBaseURI(java.lang.String uri)
Set the base URI of this document node
|
void |
setConfiguration(Configuration config)
Set the Configuration that contains this document
|
void |
setSystemId(java.lang.String uri)
Set the system id of this node
|
void |
showSize() |
atomize, compareOrder, equals, getAttributeValue, getColumnNumber, getDeclaredNamespaces, getDisplayName, getDocumentNumber, getFingerprint, getLocalPart, getNameCode, getNamePool, getNodeNumber, getPrefix, getPublicId, getSequenceNumber, getTypeAnnotation, getTypedValue, getURI, hashCode, isAncestorOrSelf, isId, isIdref, isNilled, isSameNodeInfo, iterateAxis, iterateAxis, setParentNode
atomize, compareOrder, equals, getAttributeValue, getColumnNumber, getDeclaredNamespaces, getDisplayName, getDocumentNumber, getFingerprint, getLocalPart, getNameCode, getNamePool, getPrefix, getStringValue, getTypeAnnotation, getURI, hasChildNodes, hashCode, isId, isIdref, isNilled, isSameNodeInfo, iterateAxis, iterateAxis
getStringValueCS, getTypedValue
public TinyDocumentImpl(TinyTree tree)
public TinyTree getTree()
public void setConfiguration(Configuration config)
public Configuration getConfiguration()
getConfiguration
???? NodeInfo
getConfiguration
??? TinyNodeImpl
public void setSystemId(java.lang.String uri)
setSystemId
???? javax.xml.transform.Source
setSystemId
??? TinyNodeImpl
public java.lang.String getSystemId()
getSystemId
???? javax.xml.transform.Source
getSystemId
???? javax.xml.transform.SourceLocator
getSystemId
???? NodeInfo
getSystemId
??? TinyNodeImpl
public void setBaseURI(java.lang.String uri)
public java.lang.String getBaseURI()
getBaseURI
???? NodeInfo
getBaseURI
??? TinyNodeImpl
public int getLineNumber()
getLineNumber
???? javax.xml.transform.SourceLocator
getLineNumber
???? NodeInfo
getLineNumber
??? TinyNodeImpl
public final int getNodeKind()
getNodeKind
???? NodeInfo
Type
public NodeInfo getParent()
getParent
???? NodeInfo
getParent
??? TinyNodeImpl
public NodeInfo getRoot()
getRoot
???? NodeInfo
getRoot
??? TinyNodeImpl
public DocumentInfo getDocumentRoot()
getDocumentRoot
???? NodeInfo
getDocumentRoot
??? TinyNodeImpl
public void generateId(FastStringBuffer buffer)
generateId
???? NodeInfo
generateId
??? TinyNodeImpl
buffer
- to contain an identifier based on the document numberpublic NodeInfo selectID(java.lang.String id)
selectID
???? DocumentInfo
id
- The unique ID of the required element, previously registered using registerID()public java.util.Iterator getUnparsedEntityNames()
getUnparsedEntityNames
???? DocumentInfo
public java.lang.String[] getUnparsedEntity(java.lang.String name)
getUnparsedEntity
???? DocumentInfo
name
- the name of the entitypublic void copy(Receiver out, int whichNamespaces, boolean copyAnnotations, int locationId) throws XPathException
copy
???? NodeInfo
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.whichNamespaces
- in the case of an element, controls
which namespace nodes should be copied. Values are NodeInfo.NO_NAMESPACES
,
NodeInfo.LOCAL_NAMESPACES
, NodeInfo.ALL_NAMESPACES
copyAnnotations
- 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 LocationCopierXPathException
public void showSize()
public final boolean hasChildNodes()
hasChildNodes
???? NodeInfo
hasChildNodes
??? TinyNodeImpl
true
if this node has any attributes,
false
otherwise.public final java.lang.String getStringValue()
Item.getStringValueCS()
public java.lang.CharSequence getStringValueCS()
getStringValueCS
???? Item
getStringValueCS
???? ValueRepresentation
getStringValueCS
??? TinyNodeImpl
Item.getStringValue()
public static java.lang.CharSequence getStringValue(TinyTree tree, int nodeNr)
tree
- The containing documentnodeNr
- identifies the node whose string value is required. This must be a
document or element node. The caller is trusted to ensure this.