public class NodeWrapper extends Object implements net.sf.saxon.om.NodeInfo, net.sf.saxon.tree.wrapper.VirtualNode, net.sf.saxon.tree.wrapper.SiblingCountingNode
Wraps a Treetank treeData into Saxon's internal representation of a treeData. It therefore implements Saxon's core interface NodeInfo as well as two others:
| Modifier and Type | Class and Description |
|---|---|
class |
NodeWrapper.SaxonEnumeration
SaxonEnumeration
|
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOGGER
Log wrapper for better output.
|
protected DocumentWrapper |
mDocWrapper
Document wrapper.
|
protected long |
mKey
Key of treeData.
|
protected int |
nodeKind
Kind of current treeData.
|
protected QName |
qName
QName of current treeData.
|
protected org.treetank.data.interfaces.ITreeData |
treeData
Treetank treeData.
|
| Modifier | Constructor and Description |
|---|---|
protected |
NodeWrapper(DocumentWrapper pDocWrapper,
long pNodekeyToStart)
A treeData in the XML parse tree.
|
| Modifier and Type | Method and Description |
|---|---|
net.sf.saxon.value.Value |
atomize() |
int |
compareOrder(net.sf.saxon.om.NodeInfo node) |
void |
copy(net.sf.saxon.event.Receiver out,
int copyOption,
int locationId)
Copy this treeData to a given outputter (deep copy).
|
void |
generateId(net.sf.saxon.tree.util.FastStringBuffer buf) |
String |
getAttributeValue(int fingerprint) |
String |
getAttributeValue(String arg0,
String arg1) |
String |
getBaseURI() |
int |
getColumnNumber() |
net.sf.saxon.Configuration |
getConfiguration() |
net.sf.saxon.om.NamespaceBinding[] |
getDeclaredNamespaces(net.sf.saxon.om.NamespaceBinding[] arg0) |
String |
getDisplayName() |
long |
getDocumentNumber() |
net.sf.saxon.om.DocumentInfo |
getDocumentRoot() |
int |
getFingerprint() |
int |
getLineNumber() |
String |
getLocalPart() |
int |
getNameCode() |
net.sf.saxon.om.NamePool |
getNamePool() |
int |
getNodeKind() |
net.sf.saxon.om.NodeInfo |
getParent() |
String |
getPrefix() |
Object |
getRealNode() |
net.sf.saxon.om.NodeInfo |
getRoot() |
net.sf.saxon.type.SchemaType |
getSchemaType() |
int |
getSiblingPosition() |
String |
getStringValue()
getStringValue() just calls getStringValueCS().
|
CharSequence |
getStringValueCS() |
String |
getSystemId() |
int |
getTypeAnnotation()
Get the type annotation.
|
net.sf.saxon.om.SequenceIterator |
getTypedValue() |
Object |
getUnderlyingNode() |
String |
getURI() |
boolean |
hasChildNodes() |
boolean |
isId()
Not supported.
|
boolean |
isIdref() |
boolean |
isNilled() |
boolean |
isSameNodeInfo(net.sf.saxon.om.NodeInfo other) |
net.sf.saxon.tree.iter.AxisIterator |
iterateAxis(byte axisNumber) |
net.sf.saxon.tree.iter.AxisIterator |
iterateAxis(byte axisNumber,
net.sf.saxon.pattern.NodeTest nodeTest) |
void |
setSystemId(String systemId) |
protected final transient int nodeKind
protected transient DocumentWrapper mDocWrapper
protected static final org.slf4j.Logger LOGGER
protected final transient long mKey
protected final transient org.treetank.data.interfaces.ITreeData treeData
protected final transient QName qName
protected NodeWrapper(DocumentWrapper pDocWrapper, long pNodekeyToStart) throws org.treetank.exception.TTException
pDocWrapper - Document wrapperpNodekeyToStart - NodeKey to move to.org.treetank.exception.TTExceptionpublic net.sf.saxon.value.Value atomize()
throws net.sf.saxon.trans.XPathException
atomize in interface net.sf.saxon.om.NodeInfonet.sf.saxon.trans.XPathExceptionpublic int compareOrder(net.sf.saxon.om.NodeInfo node)
compareOrder in interface net.sf.saxon.om.NodeInfopublic void copy(net.sf.saxon.event.Receiver out,
int copyOption,
int locationId)
throws net.sf.saxon.trans.XPathException
copy in interface net.sf.saxon.om.NodeInfonet.sf.saxon.trans.XPathExceptionNodeInfo.copy(Receiver, int, int)public void generateId(net.sf.saxon.tree.util.FastStringBuffer buf)
generateId in interface net.sf.saxon.om.NodeInfopublic String getAttributeValue(int fingerprint)
getAttributeValue in interface net.sf.saxon.om.NodeInfopublic String getBaseURI()
getBaseURI in interface net.sf.saxon.om.NodeInfopublic int getColumnNumber()
getColumnNumber in interface net.sf.saxon.om.NodeInfopublic net.sf.saxon.Configuration getConfiguration()
getConfiguration in interface net.sf.saxon.om.NodeInfopublic String getDisplayName()
getDisplayName in interface net.sf.saxon.om.NodeInfopublic long getDocumentNumber()
getDocumentNumber in interface net.sf.saxon.om.NodeInfopublic net.sf.saxon.om.DocumentInfo getDocumentRoot()
getDocumentRoot in interface net.sf.saxon.om.NodeInfopublic int getFingerprint()
getFingerprint in interface net.sf.saxon.om.NodeInfopublic int getLineNumber()
getLineNumber in interface net.sf.saxon.om.NodeInfopublic String getLocalPart()
getLocalPart in interface net.sf.saxon.om.NodeInfopublic int getNameCode()
getNameCode in interface net.sf.saxon.om.NodeInfopublic net.sf.saxon.om.NamePool getNamePool()
getNamePool in interface net.sf.saxon.om.NodeInfopublic int getNodeKind()
getNodeKind in interface net.sf.saxon.om.NodeInfopublic net.sf.saxon.om.NodeInfo getParent()
getParent in interface net.sf.saxon.om.NodeInfopublic String getPrefix()
getPrefix in interface net.sf.saxon.om.NodeInfopublic net.sf.saxon.om.NodeInfo getRoot()
getRoot in interface net.sf.saxon.om.NodeInfopublic final String getStringValue()
getStringValue in interface net.sf.saxon.om.Item<net.sf.saxon.om.NodeInfo>getStringValue in interface net.sf.saxon.om.NodeInfogetStringValue in interface net.sf.saxon.om.ValueRepresentation<net.sf.saxon.om.NodeInfo>public final CharSequence getStringValueCS()
getStringValueCS in interface net.sf.saxon.om.Item<net.sf.saxon.om.NodeInfo>getStringValueCS in interface net.sf.saxon.om.ValueRepresentation<net.sf.saxon.om.NodeInfo>public String getSystemId()
getSystemId in interface SourcegetSystemId in interface net.sf.saxon.om.NodeInfopublic int getTypeAnnotation()
getTypeAnnotation in interface net.sf.saxon.om.NodeInfopublic String getURI()
getURI in interface net.sf.saxon.om.NodeInfopublic boolean hasChildNodes()
hasChildNodes in interface net.sf.saxon.om.NodeInfopublic boolean isId()
isId in interface net.sf.saxon.om.NodeInfopublic boolean isIdref()
isIdref in interface net.sf.saxon.om.NodeInfopublic boolean isNilled()
isNilled in interface net.sf.saxon.om.NodeInfopublic boolean isSameNodeInfo(net.sf.saxon.om.NodeInfo other)
isSameNodeInfo in interface net.sf.saxon.om.NodeInfopublic net.sf.saxon.tree.iter.AxisIterator iterateAxis(byte axisNumber)
iterateAxis in interface net.sf.saxon.om.NodeInfopublic net.sf.saxon.tree.iter.AxisIterator iterateAxis(byte axisNumber,
net.sf.saxon.pattern.NodeTest nodeTest)
iterateAxis in interface net.sf.saxon.om.NodeInfopublic void setSystemId(String systemId)
setSystemId in interface Sourcepublic net.sf.saxon.om.SequenceIterator getTypedValue()
throws net.sf.saxon.trans.XPathException
getTypedValue in interface net.sf.saxon.om.Item<net.sf.saxon.om.NodeInfo>net.sf.saxon.trans.XPathExceptionpublic Object getRealNode()
getRealNode in interface net.sf.saxon.tree.wrapper.VirtualNodepublic Object getUnderlyingNode()
getUnderlyingNode in interface net.sf.saxon.tree.wrapper.VirtualNodepublic int getSiblingPosition()
getSiblingPosition in interface net.sf.saxon.tree.wrapper.SiblingCountingNodepublic String getAttributeValue(String arg0, String arg1)
getAttributeValue in interface net.sf.saxon.om.NodeInfopublic net.sf.saxon.om.NamespaceBinding[] getDeclaredNamespaces(net.sf.saxon.om.NamespaceBinding[] arg0)
getDeclaredNamespaces in interface net.sf.saxon.om.NodeInfopublic net.sf.saxon.type.SchemaType getSchemaType()
getSchemaType in interface net.sf.saxon.om.NodeInfoCopyright © 2013. All Rights Reserved.