biz.c24.io.api.data.saxon
Interface Node

All Superinterfaces:
net.sf.saxon.om.Item, net.sf.saxon.om.NodeInfo, net.sf.saxon.evpull.PullEvent, Source, net.sf.saxon.om.ValueRepresentation
All Known Implementing Classes:
CommentNode, ComplexElementNode, DocumentNode, ElementNode, LeafNode, ProcessingInstructionNode, SimpleElementNode, TextNode

public interface Node
extends net.sf.saxon.om.NodeInfo

A virtual node in the C24 Integreation Objects data model, other than an attribute or namespace node. This is largely a marker interface; the only functionality it defines beyond the standard Saxon NodeInfo interface is the ability to determine the "relative position" of a node relative to other siblings of the same kind/name.


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
 
Method Summary
 int getRelativePosition()
          The concept of the "relative position" of a node is used when sorting nodes into document order.
 
Methods inherited from interface net.sf.saxon.om.NodeInfo
atomize, compareOrder, copy, equals, generateId, getAttributeValue, getBaseURI, getConfiguration, getDeclaredNamespaces, getDisplayName, getDocumentNumber, getDocumentRoot, getFingerprint, getLineNumber, getLocalPart, getNameCode, getNamePool, getNodeKind, getParent, getPrefix, getRoot, getStringValue, getSystemId, getTypeAnnotation, getURI, hasChildNodes, hashCode, isSameNodeInfo, iterateAxis, iterateAxis
 
Methods inherited from interface javax.xml.transform.Source
setSystemId
 
Methods inherited from interface net.sf.saxon.om.Item
getStringValueCS, getTypedValue
 

Method Detail

getRelativePosition

int getRelativePosition()
The concept of the "relative position" of a node is used when sorting nodes into document order. The main rule is that when two nodes of the same node-kind and the same node-name are children of the same parent, then the one with lower relativePosition comes first. If an element has mixed content, then each text node or child element is given a unique relativePosition. In other cases the relativePosition does not provide complete information, and needs to be analyzed using the childMap of the parent element to determine the document order.

Returns:
an integer, the "relative position".


C24 Technologies © 2002-2012: All Rights Reserved.