public final class DocumentWrapper extends Object implements net.sf.saxon.om.DocumentInfo
Wraps a Treetank document and represents a document treeData. Therefore it implements Saxon's DocumentInfo core interface and also represents a Node in Saxon's internal treeData implementation. Thus it extends NodeWrapper.
| Modifier and Type | Field and Description |
|---|---|
protected long |
documentNumber
Unique document number.
|
protected static org.slf4j.Logger |
LOGGER
Log wrapper for better output.
|
protected String |
mBaseURI
Base URI of the document.
|
protected net.sf.saxon.Configuration |
mConfig
Saxon configuration.
|
protected ISession |
mSession
Treetank database.
|
| Constructor and Description |
|---|
DocumentWrapper(ISession pSession,
net.sf.saxon.Configuration pConfig)
Wrap a Treetank document.
|
| Modifier and Type | Method and Description |
|---|---|
net.sf.saxon.value.Value |
atomize() |
int |
compareOrder(net.sf.saxon.om.NodeInfo arg0) |
void |
copy(net.sf.saxon.event.Receiver arg0,
int arg1,
int arg2) |
void |
generateId(net.sf.saxon.tree.util.FastStringBuffer arg0) |
String |
getAttributeValue(int arg0) |
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() |
NodeWrapper |
getNodeWrapper() |
net.sf.saxon.om.NodeInfo |
getParent() |
String |
getPrefix() |
net.sf.saxon.om.NodeInfo |
getRoot() |
net.sf.saxon.type.SchemaType |
getSchemaType() |
String |
getStringValue() |
CharSequence |
getStringValueCS() |
String |
getSystemId() |
int |
getTypeAnnotation() |
net.sf.saxon.om.SequenceIterator |
getTypedValue() |
String[] |
getUnparsedEntity(String name) |
Iterator<String> |
getUnparsedEntityNames()
Get the unparsed entity with a given name.
|
String |
getURI() |
Object |
getUserData(String arg0) |
boolean |
hasChildNodes() |
boolean |
isId() |
boolean |
isIdref() |
boolean |
isNilled() |
boolean |
isSameNodeInfo(net.sf.saxon.om.NodeInfo arg0) |
boolean |
isTyped() |
net.sf.saxon.tree.iter.AxisIterator |
iterateAxis(byte arg0) |
net.sf.saxon.tree.iter.AxisIterator |
iterateAxis(byte arg0,
net.sf.saxon.pattern.NodeTest arg1) |
net.sf.saxon.om.NodeInfo |
selectID(String ID,
boolean getParent) |
protected void |
setBaseURI(String baseURI)
Set the baseURI of the current document.
|
void |
setConfiguration(net.sf.saxon.Configuration config)
Set the configuration (containing the name pool used for all names in
this document).
|
void |
setSystemId(String arg0) |
void |
setUserData(String arg0,
Object arg1) |
protected static final org.slf4j.Logger LOGGER
protected final transient ISession mSession
protected transient String mBaseURI
protected transient net.sf.saxon.Configuration mConfig
protected transient long documentNumber
public DocumentWrapper(ISession pSession, net.sf.saxon.Configuration pConfig) throws org.treetank.exception.TTException
pSession - Treetank database.pConfig - Configuration used.org.treetank.exception.TTExceptionpublic String[] getUnparsedEntity(String name)
getUnparsedEntity in interface net.sf.saxon.om.DocumentInfopublic Iterator<String> getUnparsedEntityNames()
getUnparsedEntityNames in interface net.sf.saxon.om.DocumentInfopublic net.sf.saxon.om.NodeInfo selectID(String ID, boolean getParent)
selectID in interface net.sf.saxon.om.DocumentInfopublic net.sf.saxon.om.NamePool getNamePool()
getNamePool in interface net.sf.saxon.om.NodeInfopublic void setConfiguration(net.sf.saxon.Configuration config)
config - The configuration.public net.sf.saxon.Configuration getConfiguration()
getConfiguration in interface net.sf.saxon.om.NodeInfopublic String getBaseURI()
getBaseURI in interface net.sf.saxon.om.NodeInfoprotected void setBaseURI(String baseURI)
baseURI - Usually the absoulte path of the document.public Object getUserData(String arg0)
getUserData in interface net.sf.saxon.om.DocumentInfopublic void setUserData(String arg0, Object arg1)
setUserData in interface net.sf.saxon.om.DocumentInfopublic 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 arg0)
compareOrder in interface net.sf.saxon.om.NodeInfopublic void copy(net.sf.saxon.event.Receiver arg0,
int arg1,
int arg2)
throws net.sf.saxon.trans.XPathException
copy in interface net.sf.saxon.om.NodeInfonet.sf.saxon.trans.XPathExceptionpublic void generateId(net.sf.saxon.tree.util.FastStringBuffer arg0)
generateId in interface net.sf.saxon.om.NodeInfopublic String getAttributeValue(int arg0)
getAttributeValue in interface net.sf.saxon.om.NodeInfopublic int getColumnNumber()
getColumnNumber 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 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 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 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 arg0)
isSameNodeInfo in interface net.sf.saxon.om.NodeInfopublic net.sf.saxon.tree.iter.AxisIterator iterateAxis(byte arg0)
iterateAxis in interface net.sf.saxon.om.NodeInfopublic net.sf.saxon.tree.iter.AxisIterator iterateAxis(byte arg0,
net.sf.saxon.pattern.NodeTest arg1)
iterateAxis in interface net.sf.saxon.om.NodeInfopublic void setSystemId(String arg0)
setSystemId in interface Sourcepublic 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 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 NodeWrapper getNodeWrapper()
public 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.NodeInfopublic boolean isTyped()
isTyped in interface net.sf.saxon.om.DocumentInfoCopyright © 2013. All Rights Reserved.