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 node into Saxon's internal representation of a node. 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 node.
|
protected INode |
node
Treetank node.
|
protected int |
nodeKind
Kind of current node.
|
protected QName |
qName
QName of current node.
|
Modifier | Constructor and Description |
---|---|
protected |
NodeWrapper(DocumentWrapper pDocWrapper,
long pNodekeyToStart)
A node 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 node 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 INode node
protected final transient QName qName
protected NodeWrapper(DocumentWrapper pDocWrapper, long pNodekeyToStart) throws TTException
pDocWrapper
- Document wrapperpNodekeyToStart
- NodeKey to move to.TTException
public net.sf.saxon.value.Value atomize() throws net.sf.saxon.trans.XPathException
atomize
in interface net.sf.saxon.om.NodeInfo
net.sf.saxon.trans.XPathException
public int compareOrder(net.sf.saxon.om.NodeInfo node)
compareOrder
in interface net.sf.saxon.om.NodeInfo
public 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.NodeInfo
net.sf.saxon.trans.XPathException
NodeInfo.copy(Receiver, int, int)
public void generateId(net.sf.saxon.tree.util.FastStringBuffer buf)
generateId
in interface net.sf.saxon.om.NodeInfo
public String getAttributeValue(int fingerprint)
getAttributeValue
in interface net.sf.saxon.om.NodeInfo
public String getBaseURI()
getBaseURI
in interface net.sf.saxon.om.NodeInfo
public int getColumnNumber()
getColumnNumber
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 long 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 String getLocalPart()
getLocalPart
in interface net.sf.saxon.om.NodeInfo
public int getNameCode()
getNameCode
in interface net.sf.saxon.om.NodeInfo
public net.sf.saxon.om.NamePool getNamePool()
getNamePool
in interface net.sf.saxon.om.NodeInfo
public int getNodeKind()
getNodeKind
in interface net.sf.saxon.om.NodeInfo
public net.sf.saxon.om.NodeInfo getParent()
getParent
in interface net.sf.saxon.om.NodeInfo
public String getPrefix()
getPrefix
in interface net.sf.saxon.om.NodeInfo
public net.sf.saxon.om.NodeInfo getRoot()
getRoot
in interface net.sf.saxon.om.NodeInfo
public final String getStringValue()
getStringValue
in interface net.sf.saxon.om.Item<net.sf.saxon.om.NodeInfo>
getStringValue
in interface net.sf.saxon.om.NodeInfo
getStringValue
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 Source
getSystemId
in interface net.sf.saxon.om.NodeInfo
public int getTypeAnnotation()
getTypeAnnotation
in interface net.sf.saxon.om.NodeInfo
public String getURI()
getURI
in interface net.sf.saxon.om.NodeInfo
public boolean hasChildNodes()
hasChildNodes
in interface net.sf.saxon.om.NodeInfo
public boolean isId()
isId
in interface net.sf.saxon.om.NodeInfo
public boolean isIdref()
isIdref
in interface net.sf.saxon.om.NodeInfo
public boolean isNilled()
isNilled
in interface net.sf.saxon.om.NodeInfo
public boolean isSameNodeInfo(net.sf.saxon.om.NodeInfo other)
isSameNodeInfo
in interface net.sf.saxon.om.NodeInfo
public net.sf.saxon.tree.iter.AxisIterator iterateAxis(byte axisNumber)
iterateAxis
in interface net.sf.saxon.om.NodeInfo
public net.sf.saxon.tree.iter.AxisIterator iterateAxis(byte axisNumber, net.sf.saxon.pattern.NodeTest nodeTest)
iterateAxis
in interface net.sf.saxon.om.NodeInfo
public void setSystemId(String systemId)
setSystemId
in interface Source
public 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.XPathException
public Object getRealNode()
getRealNode
in interface net.sf.saxon.tree.wrapper.VirtualNode
public Object getUnderlyingNode()
getUnderlyingNode
in interface net.sf.saxon.tree.wrapper.VirtualNode
public int getSiblingPosition()
getSiblingPosition
in interface net.sf.saxon.tree.wrapper.SiblingCountingNode
public String getAttributeValue(String arg0, String arg1)
getAttributeValue
in interface net.sf.saxon.om.NodeInfo
public net.sf.saxon.om.NamespaceBinding[] getDeclaredNamespaces(net.sf.saxon.om.NamespaceBinding[] arg0)
getDeclaredNamespaces
in interface net.sf.saxon.om.NodeInfo
public net.sf.saxon.type.SchemaType getSchemaType()
getSchemaType
in interface net.sf.saxon.om.NodeInfo
Copyright © 2013. All Rights Reserved.