|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NodeInfo
A node in the XML parse tree representing an XML element, character content, or attribute. This is the top class in the interface hierarchy for nodes; see NodeImpl for the implementation hierarchy.
Field Summary | |
---|---|
static int |
ALL_NAMESPACES
|
static int |
LOCAL_NAMESPACES
|
static int |
NO_NAMESPACES
|
Method Summary | |
---|---|
int |
compareOrder(NodeInfo other)
Determine the relative position of this node and another node, in document order. |
void |
copy(Receiver out,
int whichNamespaces,
boolean copyAnnotations)
Copy this node to a given outputter |
String |
generateId()
Get a character string that uniquely identifies this node. |
String |
getAttributeValue(int fingerprint)
Get the value of a given attribute of this node |
String |
getBaseURI()
Get the Base URI for the node, that is, the URI used for resolving a relative URI contained in the node. |
String |
getDisplayName()
Get the display name of this node. |
int |
getDocumentNumber()
Get the document number of the document containing this node. |
DocumentInfo |
getDocumentRoot()
Get the root node, if it is a document node. |
int |
getFingerprint()
Get fingerprint. |
int |
getLineNumber()
Get line number |
String |
getLocalPart()
Get the local part of the name of this node. |
int |
getNameCode()
Get name code. |
NamePool |
getNamePool()
Get the NamePool that holds the namecode for this node |
int |
getNodeKind()
Get the kind of node. |
NodeInfo |
getParent()
Get the NodeInfo object representing the parent of this node |
NodeInfo |
getRoot()
Get the root node of the tree containing this node |
String |
getStringValue()
Return the string value of the node. |
String |
getSystemId()
Get the System ID for the node. |
int |
getTypeAnnotation()
Get the type annotation of this node, if any Returns 0 for kinds of nodes that have no annotation |
String |
getURI()
Get the URI part of the name of this node. |
boolean |
hasChildNodes()
Determine whether the node has any children. |
boolean |
isSameNode(NodeInfo other)
Determine whether this is the same node as another node. |
AxisIterator |
iterateAxis(byte axisNumber)
Return an iteration over all the nodes reached by the given axis from this node |
AxisIterator |
iterateAxis(byte axisNumber,
NodeTest nodeTest)
Return an iteration over all the nodes reached by the given axis from this node that match a given NodeTest |
void |
outputNamespaceNodes(Receiver out,
boolean includeAncestors)
Output all namespace nodes associated with this element. |
Methods inherited from interface javax.xml.transform.Source |
---|
setSystemId |
Methods inherited from interface net.sf.saxon.om.Item |
---|
getTypedValue |
Field Detail |
---|
static final int NO_NAMESPACES
static final int LOCAL_NAMESPACES
static final int ALL_NAMESPACES
Method Detail |
---|
int getNodeKind()
Type
boolean isSameNode(NodeInfo other)
other
- the node to be compared with this node
String getSystemId()
getSystemId
in interface Source
String getBaseURI()
int getLineNumber()
int compareOrder(NodeInfo other)
other
- The other node, whose position is to be compared with this
node
String getStringValue()
getStringValue
in interface Item
int getNameCode()
allocate
,
getFingerprint
int getFingerprint()
String getLocalPart()
String getURI()
String getDisplayName()
NamePool getNamePool()
int getTypeAnnotation()
Type
NodeInfo getParent()
AxisIterator iterateAxis(byte axisNumber)
axisNumber
- an integer identifying the axis; one of the constants
defined in class net.sf.saxon.om.Axis
UnsupportedOperationException
- if the namespace axis is
requested and this axis is not supported for this implementation.Axis
AxisIterator iterateAxis(byte axisNumber, NodeTest nodeTest)
axisNumber
- an integer identifying the axis; one of the constants
defined in class net.sf.saxon.om.AxisnodeTest
- A pattern to be matched by the returned nodes; nodes
that do not match this pattern are not included in the result
UnsupportedOperationException
- if the namespace axis is
requested and this axis is not supported for this implementation.Axis
String getAttributeValue(int fingerprint)
fingerprint
- The fingerprint of the attribute name
NodeInfo getRoot()
DocumentInfo getDocumentRoot()
boolean hasChildNodes()
String generateId()
int getDocumentNumber()
void copy(Receiver out, int whichNamespaces, boolean copyAnnotations) throws TransformerException
out
- the Receiver to which the node should be copiedwhichNamespaces
- in the case of an element, controls
which namespace nodes should be copied. Values are NO_NAMESPACES,
LOCAL_NAMESPACES, ALL_NAMESPACEScopyAnnotations
- indicates whether the type annotations
of element and attribute nodes should be copied
TransformerException
void outputNamespaceNodes(Receiver out, boolean includeAncestors) throws TransformerException
out
- The relevant outputterincludeAncestors
- True if namespaces declared on ancestor
elements must be output; false if it is known that these are
already on the result tree
TransformerException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |