net.sf.saxon.pull
Class UnconstructedElement
- Item, NodeInfo, Source, PullEvent, ValueRepresentation
public class UnconstructedElement
An element node whose construction is deferred.
String | getBaseURI() - Get the Base URI for the node, that is, the URI used for resolving a relative URI contained
in the node.
|
int | getNameCode() - Get name code.
|
int | getNodeKind() - Get the kind of node.
|
void | setNameCode(int nameCode) - Set the name of the element node
|
atomize , compareOrder , copy , equals , generateId , getAttributeValue , getBaseURI , getConfiguration , getDeclaredNamespaces , getDisplayName , getDocumentNumber , getDocumentRoot , getFingerprint , getInstruction , getLineNumber , getLocalPart , getNamePool , getParent , getPrefix , getPuller , getRoot , getStringValue , getStringValueCS , getSystemId , getTypeAnnotation , getTypedValue , getURI , getXPathContext , hasChildNodes , hashCode , isSameNodeInfo , iterateAxis , iterateAxis , setSystemId |
UnconstructedElement
public UnconstructedElement(ElementCreator instruction,
XPathContext context)
Create an unconstructed (pending) element node
instruction
- the instruction responsible for creating the nodecontext
- the XPath dynamic context
getBaseURI
public String getBaseURI()
Get the Base URI for the node, that is, the URI used for resolving a relative URI contained
in the node. This will be the same as the System ID unless xml:base has been used.
- getBaseURI in interface NodeInfo
- getBaseURI in interface UnconstructedParent
getNameCode
public int getNameCode()
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.
- getNameCode in interface NodeInfo
- an integer name code, which may be used to obtain the actual node
name from the name pool
getNodeKind
public int getNodeKind()
Get the kind of node. This will be a value such as
Type.ELEMENT
or
Type.ATTRIBUTE
. There are seven kinds of node: documents, elements, attributes,
text, comments, processing-instructions, and namespaces.
- getNodeKind in interface NodeInfo
- an integer identifying the kind of node. These integer values are the
same as those used in the DOM
setNameCode
public void setNameCode(int nameCode)
Set the name of the element node
nameCode
- the namepool code for the element name