public final class DocumentWrapper extends Object implements net.sf.saxon.om.DocumentInfo
Wraps a Treetank document and represents a document node. Therefore it implements Saxon's DocumentInfo core interface and also represents a Node in Saxon's internal node 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 TTException
pSession
- Treetank database.pConfig
- Configuration used.TTException
public String[] getUnparsedEntity(String name)
getUnparsedEntity
in interface net.sf.saxon.om.DocumentInfo
public Iterator<String> getUnparsedEntityNames()
getUnparsedEntityNames
in interface net.sf.saxon.om.DocumentInfo
public net.sf.saxon.om.NodeInfo selectID(String ID, boolean getParent)
selectID
in interface net.sf.saxon.om.DocumentInfo
public net.sf.saxon.om.NamePool getNamePool()
getNamePool
in interface net.sf.saxon.om.NodeInfo
public void setConfiguration(net.sf.saxon.Configuration config)
config
- The configuration.public net.sf.saxon.Configuration getConfiguration()
getConfiguration
in interface net.sf.saxon.om.NodeInfo
public String getBaseURI()
getBaseURI
in interface net.sf.saxon.om.NodeInfo
protected void setBaseURI(String baseURI)
baseURI
- Usually the absoulte path of the document.public Object getUserData(String arg0)
getUserData
in interface net.sf.saxon.om.DocumentInfo
public void setUserData(String arg0, Object arg1)
setUserData
in interface net.sf.saxon.om.DocumentInfo
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 arg0)
compareOrder
in interface net.sf.saxon.om.NodeInfo
public 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.NodeInfo
net.sf.saxon.trans.XPathException
public void generateId(net.sf.saxon.tree.util.FastStringBuffer arg0)
generateId
in interface net.sf.saxon.om.NodeInfo
public String getAttributeValue(int arg0)
getAttributeValue
in interface net.sf.saxon.om.NodeInfo
public int getColumnNumber()
getColumnNumber
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 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 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 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 arg0)
isSameNodeInfo
in interface net.sf.saxon.om.NodeInfo
public net.sf.saxon.tree.iter.AxisIterator iterateAxis(byte arg0)
iterateAxis
in interface net.sf.saxon.om.NodeInfo
public net.sf.saxon.tree.iter.AxisIterator iterateAxis(byte arg0, net.sf.saxon.pattern.NodeTest arg1)
iterateAxis
in interface net.sf.saxon.om.NodeInfo
public void setSystemId(String arg0)
setSystemId
in interface Source
public 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.XPathException
public NodeWrapper getNodeWrapper()
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
public boolean isTyped()
isTyped
in interface net.sf.saxon.om.DocumentInfo
Copyright © 2013. All Rights Reserved.