|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
java.lang.String |
generateId()
Get a character string that uniquely identifies this node. |
java.lang.String |
getAttributeValue(int fingerprint)
Get the value of a given attribute of this node |
java.lang.String |
getAttributeValue(java.lang.String uri,
java.lang.String localName)
Find the value of a given attribute of this node. |
java.lang.String |
getBaseURI()
Get the Base URI for the node, that is, the URI used for resolving a relative URI contained in the node. |
java.lang.String |
getDisplayName()
Get the display name of this node. |
DocumentInfo |
getDocumentRoot()
Get the root node, if it is a document node. |
int |
getFingerprint()
Get fingerprint. |
int |
getLineNumber()
Get line number |
java.lang.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 |
NodeInfo |
getParent()
Get the NodeInfo object representing the parent of this node |
NodeInfo |
getRoot()
Get the root node of the tree containing this node |
java.lang.String |
getStringValue()
Return the string value of the node. |
java.lang.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 |
java.lang.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 |
getItemType, getTypedValue |
Field Detail |
public static final int NO_NAMESPACES
public static final int LOCAL_NAMESPACES
public static final int ALL_NAMESPACES
Method Detail |
public boolean isSameNode(NodeInfo other)
other
- the node to be compared with this node
public java.lang.String getSystemId()
getSystemId
in interface javax.xml.transform.Source
public java.lang.String getBaseURI()
public int getLineNumber()
public int compareOrder(NodeInfo other)
other
- The other node, whose position is to be compared with this
node
public java.lang.String getStringValue()
getStringValue
in interface Item
public int getNameCode()
allocate
,
getFingerprint
public int getFingerprint()
public java.lang.String getLocalPart()
public java.lang.String getURI()
public java.lang.String getDisplayName()
public NamePool getNamePool()
public int getTypeAnnotation()
Type
public NodeInfo getParent()
public AxisIterator iterateAxis(byte axisNumber)
axisNumber
- an integer identifying the axis; one of the constants
defined in class net.sf.saxon.om.Axis
java.lang.UnsupportedOperationException
- if the namespace axis is
requested and this axis is not supported for this implementation.Axis
public 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
java.lang.UnsupportedOperationException
- if the namespace axis is
requested and this axis is not supported for this implementation.Axis
public java.lang.String getAttributeValue(java.lang.String uri, java.lang.String localName)
uri
- the namespace uri of an attribute ("" if no namespace)localName
- the local name of the attribute
public java.lang.String getAttributeValue(int fingerprint)
fingerprint
- The fingerprint of the attribute name
public NodeInfo getRoot()
public DocumentInfo getDocumentRoot()
public boolean hasChildNodes()
public java.lang.String generateId()
public void copy(Receiver out, int whichNamespaces, boolean copyAnnotations) throws javax.xml.transform.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
javax.xml.transform.TransformerException
public void outputNamespaceNodes(Receiver out, boolean includeAncestors) throws javax.xml.transform.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
javax.xml.transform.TransformerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |