|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.teiid.query.xquery.saxon.NodeWrapper
org.teiid.query.xquery.saxon.DocumentWrapper
public class DocumentWrapper
The root node of an XPath tree. (Or equivalently, the tree itself).
This class is used not only for a document, but also for the root of a document-less tree fragment.
| Field Summary | |
|---|---|
protected java.lang.String |
baseURI
|
protected net.sf.saxon.Configuration |
config
|
protected int |
documentNumber
|
| Fields inherited from class org.teiid.query.xquery.saxon.NodeWrapper |
|---|
docWrapper, index, node, nodeKind |
| 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 |
| Constructor Summary | |
|---|---|
DocumentWrapper(nu.xom.Node root,
java.lang.String baseURI,
net.sf.saxon.Configuration config)
Create a Saxon wrapper for a XOM root node |
|
| Method Summary | |
|---|---|
int |
getColumnNumber()
|
net.sf.saxon.Configuration |
getConfiguration()
Get the configuration previously set using setConfiguration |
long |
getDocumentNumber()
Get the unique document number for this document (the number is unique for all documents within a NamePool) |
net.sf.saxon.om.NamePool |
getNamePool()
Get the name pool used for the names in this document |
java.lang.String[] |
getUnparsedEntity(java.lang.String name)
Get the unparsed entity with a given name |
java.util.Iterator |
getUnparsedEntityNames()
|
boolean |
isId()
|
boolean |
isIdref()
|
boolean |
isNilled()
|
net.sf.saxon.om.NodeInfo |
selectID(java.lang.String id,
boolean getParent)
Get the element with a given ID, if any |
void |
setConfiguration(net.sf.saxon.Configuration config)
Set the configuration, which defines the name pool used for all names in this document. |
net.sf.saxon.om.NodeInfo |
wrap(nu.xom.Node node)
Wrap a node in the XOM document. |
| Methods inherited from class org.teiid.query.xquery.saxon.NodeWrapper |
|---|
atomize, compareOrder, copy, equals, generateId, getAttributeValue, getBaseURI, getDeclaredNamespaces, getDisplayName, getDocumentRoot, getFingerprint, getLineNumber, getLocalPart, getNameCode, getNodeKind, getParent, getPrefix, getRealNode, getRoot, getSiblingPosition, getStringValue, getStringValueCS, getSystemId, getTypeAnnotation, getTypedValue, getUnderlyingNode, getURI, hasChildNodes, hashCode, isSameNodeInfo, iterateAxis, iterateAxis, makeWrapper, makeWrapper, setSystemId |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.saxon.om.NodeInfo |
|---|
atomize, compareOrder, copy, equals, generateId, getAttributeValue, getBaseURI, getDeclaredNamespaces, getDisplayName, getDocumentRoot, getFingerprint, getLineNumber, getLocalPart, getNameCode, 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 |
| Field Detail |
|---|
protected net.sf.saxon.Configuration config
protected java.lang.String baseURI
protected int documentNumber
| Constructor Detail |
|---|
public DocumentWrapper(nu.xom.Node root,
java.lang.String baseURI,
net.sf.saxon.Configuration config)
root - The XOM root nodebaseURI - The base URI for all the nodes in the treeconfig - The configuration which defines the name pool used for all
names in this tree| Method Detail |
|---|
public net.sf.saxon.om.NodeInfo wrap(nu.xom.Node node)
node - The node to be wrapped. This must be a node in the same
document (the system does not check for this).
public void setConfiguration(net.sf.saxon.Configuration config)
config - The configuration to be usedpublic net.sf.saxon.Configuration getConfiguration()
getConfiguration in interface net.sf.saxon.om.NodeInfogetConfiguration in class NodeWrapperpublic net.sf.saxon.om.NamePool getNamePool()
getNamePool in interface net.sf.saxon.om.NodeInfogetNamePool in class NodeWrapperpublic long getDocumentNumber()
getDocumentNumber in interface net.sf.saxon.om.NodeInfogetDocumentNumber in class NodeWrapper
public net.sf.saxon.om.NodeInfo selectID(java.lang.String id,
boolean getParent)
selectID in interface net.sf.saxon.om.DocumentInfoid - the required ID valuegetParent - true if running the element-with-id() function rather than the id()
function; the difference is that in the case of an element of type xs:ID,
the parent of the element should be returned, not the element itself.
public java.lang.String[] getUnparsedEntity(java.lang.String name)
getUnparsedEntity in interface net.sf.saxon.om.DocumentInfoname - the name of the entity
public java.util.Iterator getUnparsedEntityNames()
getUnparsedEntityNames in interface net.sf.saxon.om.DocumentInfopublic int getColumnNumber()
getColumnNumber in interface net.sf.saxon.om.NodeInfogetColumnNumber in class NodeWrapperpublic boolean isId()
isId in interface net.sf.saxon.om.NodeInfoisId in class NodeWrapperpublic boolean isIdref()
isIdref in interface net.sf.saxon.om.NodeInfoisIdref in class NodeWrapperpublic boolean isNilled()
isNilled in interface net.sf.saxon.om.NodeInfoisNilled in class NodeWrapper
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||