net.sf.saxon.tinytree
public final class TinyDocumentImpl extends TinyParentNodeImpl implements DocumentInfo
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 |
AxisIterator | getAllElements(int fingerprint)
Get a list of all elements with a given name. |
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 |
List | getElementList(int fingerprint)
Get a list containing all the elements with a given element name |
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 |
void | registerID(NodeInfo e, String id)
Register a unique element ID. |
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 | setUnparsedEntity(String name, String uri, String publicId)
Set an unparsed entity URI associated with this document. |
void | showSize() |
Returns: the typed value. This will either be a single AtomicValue or a Value whose items are atomic values.
Since: 8.5
Parameters: buffer to contain an identifier based on the document number
Returns: the DocumentInfo representing the document node, or null if the root of the tree is not a document node
Parameters: fingerprint the fingerprint of the element name
Returns: list a List containing the TinyElementImpl objects
Returns: 0 always
Returns: Type.DOCUMENT (always)
Returns: The Node object describing the containing element or root node.
Returns: the NodeInfo that is the root of the tree - not necessarily a document node
Returns: XS_UNTYPED if no validation has been done, XS_ANY_TYPE if the document has been validated
Returns: an iterator over the items in the typed value of the node or atomic value. The items returned by this iterator will always be atomic values.
Throws: net.sf.saxon.trans.XPathException where no typed value is available, for example in the case of an element with complex content
Since: 8.4
Parameters: name the name of the entity
Returns: if the entity exists, return an array of two Strings, the first holding the system ID of the entity, the second holding the public
Returns: an Iterator, whose items are of type String, containing the names of all unparsed entities defined in this document. If there are no unparsed entities or if the information is not available then an empty iterator is returned
Parameters: e The NodeInfo (always an element) having a particular unique ID value id The unique ID value. The caller is responsible for checking that this is a valid NCName.
Parameters: id The unique ID of the required element, previously registered using registerID() getParent
Returns: The NodeInfo (always an Element) for the given ID if one has been registered, otherwise null.