|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.xml_project.morganaxquery.DynamicXQueryContext
public class DynamicXQueryContext
The dynamic context of a query (XPath and XQuery)
Nested Class Summary | |
---|---|
class |
DynamicXQueryContext.VariableScope
|
Constructor Summary | |
---|---|
protected |
DynamicXQueryContext(StaticXQueryContext staticContext,
com.xml_project.morganaxquery.configuration.XQueryConfiguration config,
XdmItem contextItem,
long pos,
long size)
Creates a new dynamic query context |
Method Summary | |
---|---|
void |
clearVariableScope()
|
void |
closeTrace()
|
DynamicXQueryContext |
createDynamicContext(XdmItem item,
long pos,
long length)
|
void |
dumpVariableScope()
|
void |
evaluateInscopeVariables(java.util.List<java.util.List<com.xml_project.morganaxquery.internal.VariableDeclaration>> declarations)
|
com.xml_project.morganaxquery.configuration.XQueryConfiguration |
getConfiguration()
Returns the configuration settings of this query. |
java.util.Stack<ModelNode> |
getConstructionStack()
|
XdmItem |
getContextItem()
Returns the context item, if any. |
long |
getContextPosition()
Returns the current context position. |
long |
getContextSize()
Return the size of the current context. |
XS_DateTime |
getCurrentDateTime()
Returns the current dateTime. |
com.xml_project.morganaxpath.nodes.XQueryNodeModel |
getCurrentNodeModel()
|
com.xml_project.morganaxpath.local.FallbackLocalizer |
getFallbackLocalizer()
|
XS_dayTimeDuration |
getImplicitTimezone()
Return the implicit time zone of the query. |
com.xml_project.morganaxpath.local.Localizer |
getLocalizer(java.lang.String language)
Return the localizer for the given language or null |
XdmSequence |
getResolvedCollection(java.lang.String href)
Returns a collection from the resolved collections. |
ModelNode |
getResolvedDocument(java.lang.String href)
Returns a document from the list of resolved documents. |
java.lang.String |
getResolvedText(java.lang.String href)
|
StaticXQueryContext |
getStaticContext()
Returns the static context of this query (XPath and XQuery). |
protected int |
getVariableScopes()
|
XdmSequence |
getVariableValue(javax.xml.namespace.QName name)
|
void |
newVariableScope()
|
void |
restoreVariableScope(DynamicXQueryContext.VariableScope scope)
|
void |
setCurrentNodeModel(com.xml_project.morganaxpath.nodes.XQueryNodeModel model)
|
void |
setResolvedCollection(java.lang.String href,
XdmSequence collection)
Adds a collection to the list of resolved (=known) collections. |
void |
setResolvedDocument(java.lang.String href,
ModelNode node)
Adds a document to the list of resolved (=known) documents. |
void |
setResolvedText(java.lang.String href,
java.lang.String text)
|
void |
setVariable(javax.xml.namespace.QName name,
XdmSequence value)
|
DynamicXQueryContext.VariableScope |
switchVariableScope()
|
void |
trace(java.lang.String sequence,
java.lang.String label)
Method Interface for fn:trace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected DynamicXQueryContext(StaticXQueryContext staticContext, com.xml_project.morganaxquery.configuration.XQueryConfiguration config, XdmItem contextItem, long pos, long size) throws XPathException
staticContext
- contextItem
- pos
- size
-
XPathException
Method Detail |
---|
public XS_dayTimeDuration getImplicitTimezone()
public XS_DateTime getCurrentDateTime()
public com.xml_project.morganaxpath.local.Localizer getLocalizer(java.lang.String language)
language
- a language as in xs:lanuage
public com.xml_project.morganaxpath.local.FallbackLocalizer getFallbackLocalizer()
public StaticXQueryContext getStaticContext()
public com.xml_project.morganaxquery.configuration.XQueryConfiguration getConfiguration()
public java.util.Stack<ModelNode> getConstructionStack()
protected int getVariableScopes()
public void newVariableScope()
public void clearVariableScope()
public DynamicXQueryContext.VariableScope switchVariableScope()
public void restoreVariableScope(DynamicXQueryContext.VariableScope scope)
public void setResolvedCollection(java.lang.String href, XdmSequence collection)
href
- uri for this collection.collection
- the collection.public XdmSequence getResolvedCollection(java.lang.String href)
href
- uri of the collection.
public void setResolvedDocument(java.lang.String href, ModelNode node)
href
- the uri for this document.node
- the document.public ModelNode getResolvedDocument(java.lang.String href)
href
- the uri of the document.
public void setResolvedText(java.lang.String href, java.lang.String text)
public java.lang.String getResolvedText(java.lang.String href)
public void setVariable(javax.xml.namespace.QName name, XdmSequence value) throws XPathException
XPathException
public void dumpVariableScope()
public XdmSequence getVariableValue(javax.xml.namespace.QName name)
public com.xml_project.morganaxpath.nodes.XQueryNodeModel getCurrentNodeModel()
public void setCurrentNodeModel(com.xml_project.morganaxpath.nodes.XQueryNodeModel model)
public XdmItem getContextItem()
public long getContextPosition()
public long getContextSize()
public DynamicXQueryContext createDynamicContext(XdmItem item, long pos, long length) throws XPathException
XPathException
public void evaluateInscopeVariables(java.util.List<java.util.List<com.xml_project.morganaxquery.internal.VariableDeclaration>> declarations) throws XPathException
declarations
-
XPathException
public void trace(java.lang.String sequence, java.lang.String label)
sequence
- label
- public void closeTrace()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |