| java.lang.Object net.sf.saxon.pull.UnconstructedParent net.sf.saxon.pull.UnconstructedDocument
UnconstructedDocument | public class UnconstructedDocument extends UnconstructedParent implements DocumentInfo(Code) | | A document node whose construction is deferred.
(TODO) NOTE: this class is an exception to the general rule that for document nodes, node identity implies object identity
|
getDisplayName | public String getDisplayName()(Code) | | Get the display name of this node. For elements and attributes this is [prefix:]localname.
For unnamed nodes, it is an empty string.
The display name of this node. For a node with no name, returnan empty string. |
getDocumentRoot | public DocumentInfo getDocumentRoot()(Code) | | Get the root node, if it is a document node.
the DocumentInfo representing the containing document. If thisnode is part of a tree that does not have a document node as itsroot, return null. |
getFingerprint | public int getFingerprint()(Code) | | Get fingerprint. The fingerprint is a coded form of the expanded name
of the node: two nodes
with the same name code have the same namespace URI and the same local name.
A fingerprint of -1 should be returned for a node with no name.
an integer fingerprint; two nodes with the same fingerprint havethe same expanded QName |
getLocalPart | public String getLocalPart()(Code) | | Get the local part of the name of this node. This is the name after the ":" if any.
the local part of the name. For an unnamed node, returns "". Unlike the DOMinterface, this returns the full name in the case of a non-namespaced name. |
getNameCode | public int getNameCode()(Code) | | Get name code. The name code is a coded form of the node name: two nodes
with the same name code have the same namespace URI, the same local name,
and the same prefix. By masking the name code with &0xfffff, you get a
fingerprint: two nodes with the same fingerprint have the same local name
and namespace URI.
an integer name code, which may be used to obtain the actual nodename from the name pool See Also: net.sf.saxon.om.NamePool.allocate See Also: allocate See Also: net.sf.saxon.om.NamePool.getFingerprint See Also: getFingerprint |
getNodeKind | public int getNodeKind()(Code) | | |
getPrefix | public String getPrefix()(Code) | | Get the prefix of the name of the node. This is defined only for elements and attributes.
If the node has no prefix, or for other kinds of node, return a zero-length string.
The prefix of the name of the node. |
getURI | public String getURI()(Code) | | Get the URI part of the name of this node. This is the URI corresponding to the
prefix, or the URI of the default namespace if appropriate.
The URI of the namespace of this node. For an unnamed node,or for a node with an empty prefix, return an emptystring. |
getUnparsedEntity | public String[] getUnparsedEntity(String name)(Code) | | Get the unparsed entity with a given name
Parameters: name - the name of the entity if the entity exists, return an array of two Strings, the firstholding the system ID of the entity, the second holding the publicID if there is one, or null if not. If the entity does not exist,the method returns null. Applications should be written on theassumption that this array may be extended in the future to provideadditional information. since: 8.4 |
selectID | public NodeInfo selectID(String id)(Code) | | Get the element with a given ID, if any
Parameters: id - the required ID value the element with the given ID, or null if there is no such IDpresent (or if the parser has not notified attributes as being oftype ID) since: 8.4 |
|
|