|
: Interface NodeInfo
com.icl.saxon.om
|
Field Summary | |
static short |
ATTRIBUTE
|
static short |
COMMENT
|
static short |
ELEMENT
|
static short |
NAMESPACE
|
static short |
NODE
|
static short |
NONE
|
static short |
NUMBER_OF_TYPES
|
static short |
PI
|
static short |
ROOT
|
static short |
TEXT
|
Method Summary | |
int |
compareOrder(NodeInfo other)
Determine the relative position of this node and another node, in document order. |
void |
copy(Outputter out)
Copy this node to a given outputter |
void |
copyStringValue(Outputter out)
Copy the string-value of this node to a given outputter |
java.lang.String |
generateId()
Get a character string that uniquely identifies this node. Note: a.isSameNode(b) if and only if generateId(a)==generateId(b) |
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 (document) node |
AxisEnumeration |
getEnumeration(byte axisNumber,
NodeTest nodeTest)
Return an enumeration over the nodes reached by the given axis from this node |
int |
getFingerprint()
Get fingerprint. |
int |
getLineNumber()
Get line number |
java.lang.String |
getLocalName()
Get the local part of the name of this node. |
int |
getNameCode()
Get name code. |
short |
getNodeType()
Return the type of node. |
NodeInfo |
getParent()
Get the NodeInfo object representing the parent of this node |
java.lang.String |
getPrefix()
Get the prefix part of the name of this node. |
java.lang.String |
getStringValue()
Return the string value of the node. |
java.lang.String |
getSystemId()
Get the System ID for the node. |
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. |
void |
outputNamespaceNodes(Outputter out,
boolean includeAncestors)
Output all namespace nodes associated with this element. |
setSystemId |
Field Detail |
public static final short NODE
public static final short ELEMENT
public static final short ATTRIBUTE
public static final short TEXT
public static final short PI
public static final short COMMENT
public static final short ROOT
public static final short NAMESPACE
public static final short NUMBER_OF_TYPES
public static final short NONE
Method Detail |
public short getNodeType()
public boolean isSameNode(NodeInfo other)
public java.lang.String getSystemId()
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 nodepublic java.lang.String getStringValue()
public int getNameCode()
allocate
,
getFingerprint
public int getFingerprint()
public java.lang.String getLocalName()
public java.lang.String getPrefix()
public java.lang.String getURI()
public java.lang.String getDisplayName()
public NodeInfo getParent()
public AxisEnumeration getEnumeration(byte axisNumber, NodeTest nodeTest)
nodeType
- the type(s) of node to be included, e.g. NodeInfo.ELEMENT, NodeInfo.TEXT.
The value NodeInfo.NODE means include any type of node.nodeTest
- A pattern to be matched by the returned nodespublic 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 attributepublic java.lang.String getAttributeValue(int fingerprint)
fingerprint
- The fingerprint of the attribute namepublic DocumentInfo getDocumentRoot()
public boolean hasChildNodes()
public java.lang.String generateId()
public void copy(Outputter out)
public void copyStringValue(Outputter out)
public void outputNamespaceNodes(Outputter out, boolean includeAncestors)
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |