net.sf.saxon.tinytree
public final class TinyDocumentImpl extends TinyParentNodeImpl implements DocumentInfo
Constructor Summary | |
---|---|
TinyDocumentImpl(TinyTree tree) |
Method Summary | |
---|---|
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 |
String[] | getUnparsedEntity(String name)
Get the unparsed entity with a given nameID if there is one, or null if not. |
void | registerID(NodeInfo e, String id)
Register a unique element ID. |
NodeInfo | selectID(String id)
Get the element with a given ID. |
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() |
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
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
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()
Returns: The NodeInfo (always an Element) for the given ID if one has been registered, otherwise null.