|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiz.c24.io.api.data.saxon.ElementNode
public abstract class ElementNode
Implements the Saxon NodeInfo interface as a wrapper around the C24 Integreation Objects representation. This is an abstract class: there are two concrete subclasses, one for elements with a complex type, one for elements with a simple type.
Field Summary |
---|
Fields inherited from interface net.sf.saxon.om.NodeInfo |
---|
ALL_NAMESPACES, EMPTY_NAMESPACE_LIST, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACES |
Fields inherited from interface net.sf.saxon.om.ValueRepresentation |
---|
EMPTY_VALUE_ARRAY |
Constructor Summary | |
---|---|
ElementNode()
|
Method Summary | |
---|---|
int |
compareOrder(net.sf.saxon.om.NodeInfo other)
Determine the relative position of this node and another node, in document order. |
void |
copy(net.sf.saxon.event.Receiver out,
int whichNamespaces,
boolean copyAnnotations,
int locationId)
Copy this node to a given receiver. |
void |
generateId(net.sf.saxon.om.FastStringBuffer buffer)
Construct a character string that uniquely identifies 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. |
net.sf.saxon.Configuration |
getConfiguration()
Get the configuration used to build the tree containing this node. |
String |
getDisplayName()
Get the display name of this node, in the form of a lexical QName. |
int |
getDocumentNumber()
Get the document number of the document containing this node. |
net.sf.saxon.om.DocumentInfo |
getDocumentRoot()
Get the root node, if it is a document node. |
int |
getFingerprint()
Get fingerprint. |
int |
getLineNumber()
Get line number. |
int |
getNameCode()
Get name code. |
net.sf.saxon.om.NamePool |
getNamePool()
Get the NamePool that holds the namecode for this node |
int |
getNodeKind()
Get the kind of node. |
int |
getRelativePosition()
Get the relative position of this element (relative to its siblings having the same element name) |
net.sf.saxon.om.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. |
net.sf.saxon.om.SequenceIterator |
getTypedValue()
Get the typed value of the item. |
net.sf.saxon.om.AxisIterator |
iterateAxis(byte axisNumber)
Return an iteration over all the nodes reached by the given axis from this node |
void |
setSystemId(String systemId)
Set the system identifier for this Source. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface biz.c24.io.api.data.saxon.ComponentNode |
---|
getUnderlyingComponent |
Methods inherited from interface biz.c24.io.api.data.saxon.DataNode |
---|
getUnderlyingObject |
Methods inherited from interface net.sf.saxon.om.NodeInfo |
---|
atomize, equals, getAttributeValue, getDeclaredNamespaces, getLocalPart, getParent, getPrefix, getTypeAnnotation, getURI, hasChildNodes, hashCode, isSameNodeInfo, iterateAxis |
Methods inherited from interface net.sf.saxon.om.Item |
---|
getStringValueCS |
Constructor Detail |
---|
public ElementNode()
Method Detail |
---|
public int getRelativePosition()
getRelativePosition
in interface Node
public int compareOrder(net.sf.saxon.om.NodeInfo other)
compareOrder
in interface net.sf.saxon.om.NodeInfo
other
- The other node, whose position is to be compared with this
node
public void copy(net.sf.saxon.event.Receiver out, int whichNamespaces, boolean copyAnnotations, int locationId) throws net.sf.saxon.trans.XPathException
copy
in interface net.sf.saxon.om.NodeInfo
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 NodeInfo.NO_NAMESPACES
,
NodeInfo.LOCAL_NAMESPACES
, NodeInfo.ALL_NAMESPACES
copyAnnotations
- indicates whether the type annotations
of element and attribute nodes should be copiedlocationId
- If non-zero, identifies the location of the instruction
that requested this copy. If zero, indicates that the location information
for the original node is to be copied; in this case the Receiver must be
a LocationCopier
net.sf.saxon.trans.XPathException
public void generateId(net.sf.saxon.om.FastStringBuffer buffer)
generateId
in interface net.sf.saxon.om.NodeInfo
buffer
- a buffer which will be updated to hold a string
that uniquely identifies this node, across all documents.Changed in Saxon 8.7 to generate the ID value in a client-supplied buffer
public String getBaseURI()
getBaseURI
in interface net.sf.saxon.om.NodeInfo
public net.sf.saxon.Configuration getConfiguration()
getConfiguration
in interface net.sf.saxon.om.NodeInfo
public String getDisplayName()
getDisplayName
in interface net.sf.saxon.om.NodeInfo
public int getDocumentNumber()
getDocumentNumber
in interface net.sf.saxon.om.NodeInfo
public net.sf.saxon.om.DocumentInfo getDocumentRoot()
getDocumentRoot
in interface net.sf.saxon.om.NodeInfo
public int getFingerprint()
getFingerprint
in interface net.sf.saxon.om.NodeInfo
public int getLineNumber()
getLineNumber
in interface net.sf.saxon.om.NodeInfo
public int getNameCode()
NamePool.FP_MASK
, you get a
fingerprint: two nodes with the same fingerprint have the same local name
and namespace URI.
getNameCode
in interface net.sf.saxon.om.NodeInfo
allocate
,
getFingerprint
public net.sf.saxon.om.NamePool getNamePool()
getNamePool
in interface net.sf.saxon.om.NodeInfo
public int getNodeKind()
Type.ELEMENT
or Type.ATTRIBUTE
. There are seven kinds of node: documents, elements, attributes,
text, comments, processing-instructions, and namespaces.
getNodeKind
in interface net.sf.saxon.om.NodeInfo
Type
public net.sf.saxon.om.NodeInfo getRoot()
getRoot
in interface net.sf.saxon.om.NodeInfo
public String getStringValue()
getStringValue
in interface net.sf.saxon.om.Item
getStringValue
in interface net.sf.saxon.om.NodeInfo
getStringValue
in interface net.sf.saxon.om.ValueRepresentation
public String getSystemId()
getSystemId
in interface Source
getSystemId
in interface net.sf.saxon.om.NodeInfo
public net.sf.saxon.om.AxisIterator iterateAxis(byte axisNumber)
iterateAxis
in interface net.sf.saxon.om.NodeInfo
axisNumber
- an integer identifying the axis; one of the constants
defined in class Axis
UnsupportedOperationException
- if the namespace axis is
requested and this axis is not supported for this implementation.Axis
public void setSystemId(String systemId)
The system identifier is optional if the source does not get its data from a URL, but it may still be useful to provide one. The application can use a system identifier, for example, to resolve relative URIs and to include in error messages and warnings.
setSystemId
in interface Source
systemId
- The system identifier as a URL string.public net.sf.saxon.om.SequenceIterator getTypedValue() throws net.sf.saxon.trans.XPathException
getTypedValue
in interface net.sf.saxon.om.Item
net.sf.saxon.trans.XPathException
- where no typed value is available, for example in the case of
an element with complex content
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |