| java.lang.Object net.sf.saxon.tinytree.TinyNodeImpl net.sf.saxon.tinytree.TinyParentNodeImpl net.sf.saxon.tinytree.TinyDocumentImpl
TinyDocumentImpl | final public class TinyDocumentImpl extends TinyParentNodeImpl implements DocumentInfo(Code) | | A node in the XML parse tree representing the Document itself (or equivalently, the root
node of the Document).
|
copy | public void copy(Receiver out, int whichNamespaces, boolean copyAnnotations, int locationId) throws XPathException(Code) | | Copy this node to a given outputter
|
generateId | public String generateId()(Code) | | Get a character string that uniquely identifies this node
an identifier based on the document number |
getAllElements | AxisIterator getAllElements(int fingerprint)(Code) | | Get a list of all elements with a given name. This is implemented
as a memo function: the first time it is called for a particular
element type, it remembers the result for next time.
|
getBaseURI | public String getBaseURI()(Code) | | Get the base URI of this root node. For a root node the base URI is the same as the
System ID.
|
getConfiguration | public Configuration getConfiguration()(Code) | | Get the configuration previously set using setConfiguration
|
getDocumentRoot | public DocumentInfo getDocumentRoot()(Code) | | Get the root (document) node
the DocumentInfo representing the document node, or null if theroot of the tree is not a document node |
getElementList | List getElementList(int fingerprint)(Code) | | Get a list containing all the elements with a given element name
Parameters: fingerprint - the fingerprint of the element name list a List containing the TinyElementImpl objects |
getLineNumber | public int getLineNumber()(Code) | | Get the line number of this root node.
0 always |
getNodeKind | final public int getNodeKind()(Code) | | Return the type of node.
Type.DOCUMENT (always) |
getParent | public NodeInfo getParent()(Code) | | Find the parent node of this node.
The Node object describing the containing element or root node. |
getRoot | public NodeInfo getRoot()(Code) | | Get the root node
the NodeInfo that is the root of the tree - not necessarily a document node |
getSystemId | public String getSystemId()(Code) | | Get the system id of this root node
|
getTree | public TinyTree getTree()(Code) | | Get the tree containing this node
|
getUnparsedEntity | public String[] getUnparsedEntity(String name)(Code) | | Get the unparsed entity with a given nameID if there is one, or null if not. If the entity
does not exist, return null.
Parameters: name - the name of the entity if the entity exists, return an array of two Strings, the first holding the system IDof the entity, the second holding the public |
registerID | void registerID(NodeInfo e, String id)(Code) | | Register a unique element ID. Fails if there is already an element with that ID.
Parameters: e - The NodeInfo (always an element) having a particular unique ID value Parameters: id - The unique ID value. The caller is responsible for checking that thisis a valid NCName. |
selectID | public NodeInfo selectID(String id)(Code) | | Get the element with a given ID.
Parameters: id - The unique ID of the required element, previously registered using registerID() The NodeInfo (always an Element) for the given ID if one has been registered,otherwise null. |
setConfiguration | public void setConfiguration(Configuration config)(Code) | | Set the Configuration that contains this document
|
setSystemId | public void setSystemId(String uri)(Code) | | Set the system id of this node
|
setUnparsedEntity | void setUnparsedEntity(String name, String uri, String publicId)(Code) | | Set an unparsed entity URI associated with this document. For system use only, while
building the document.
|
showSize | public void showSize()(Code) | | |
|
|