biz.c24.io.api.data.saxon
Class TextNode

java.lang.Object
  extended by biz.c24.io.api.data.saxon.LeafNode
      extended by biz.c24.io.api.data.saxon.TextNode
All Implemented Interfaces:
DataNode, Node, Source, net.sf.saxon.evpull.PullEvent, net.sf.saxon.om.Item, net.sf.saxon.om.NodeInfo, net.sf.saxon.om.ValueRepresentation

public class TextNode
extends LeafNode

A text node in the C24 Integreation Objects data model. This is used to represent both text nodes in simple-typed elements (in which case the text node has no siblings), and text nodes existing as part of mixed content.


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
 
Method Summary
 net.sf.saxon.value.Value atomize()
          Get the typed value.
 int getNodeKind()
          Get the kind of node.
 
Methods inherited from class biz.c24.io.api.data.saxon.LeafNode
compareOrder, copy, equals, generateId, getAttributeValue, getBaseURI, getConfiguration, getDeclaredNamespaces, getDisplayName, getDocumentNumber, getDocumentRoot, getFingerprint, getLineNumber, getLocalPart, getNameCode, getNamePool, getParent, getPrefix, getRelativePosition, getRoot, getStringValue, getStringValueCS, getSystemId, getTypeAnnotation, getTypedValue, getUnderlyingObject, getURI, hasChildNodes, hashCode, isSameNodeInfo, iterateAxis, iterateAxis, sendNamespaceDeclarations, setSystemId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.

Returns:
an integer identifying the kind of node. These integer values are the same as those used in the DOM
Since:
8.4
See Also:
Type

atomize

public net.sf.saxon.value.Value atomize()
                                 throws net.sf.saxon.trans.XPathException
Get the typed value. The result of this method will always be consistent with the method Item.getTypedValue(). However, this method is often more convenient and may be more efficient, especially in the common case where the value is expected to be a singleton.

Specified by:
atomize in interface net.sf.saxon.om.NodeInfo
Overrides:
atomize in class LeafNode
Returns:
the typed value. This will either be a single AtomicValue or a Value whose items are atomic values.
Throws:
net.sf.saxon.trans.XPathException
Since:
8.5


C24 Technologies © 2002-2012: All Rights Reserved.