|
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XQDynamicContext
Method Summary | |
---|---|
void |
bindVariableValue(QName qname,
XDMIterator iter)
Bind the value of this variable directly to XDM instance generated by the iterator |
VariableHolder |
getContextItem()
|
MXQueryDateTime |
getCurrentTime()
Get the "current" time (the time that was current when setCurrentTime(MXQueryDateTime) was called). |
MXQueryDayTimeDuration |
getCurrentTimeZone()
Get the "current" time zone (at the time that was current when setCurrentTime(MXQueryDateTime) was called). |
int |
getPosition()
Get the Context Position: the position of the context item within the current context |
StoreSet |
getStores()
Returns the store set for XQueryUpdate. |
VariableHolder |
getVariable(QName qname)
Get the reference to the variable and its binding |
VariableHolder |
getVariable(QName qname,
boolean resolve)
Get the reference to the variable and its binding |
void |
incVariableUse(QName qname)
Indicate that there are more users for this variable |
void |
setContextItem(XDMIterator iter)
|
void |
setCurrentTime(MXQueryDateTime dateTime)
Stores the current time in the context. |
void |
setCurrentTimeZone(java.util.TimeZone tz)
Set the current time zone |
void |
setPosition(int position)
Set the Context Position: the position of the context item within the current context |
void |
setVariableValue(QName qname,
XDMIterator iter)
Set the value of this variable, implicitly creating/reusing stores if needed |
void |
setVariableValue(QName qname,
XDMIterator iter,
boolean check,
boolean resolve)
Set the value of this variable, implicitly creating/reusing stores if needed |
Method Detail |
---|
int getPosition()
void setPosition(int position)
position
- the position to set, must be > 0void setVariableValue(QName qname, XDMIterator iter, boolean check, boolean resolve) throws MXQueryException
qname
- the variable nameiter
- the iterator containing the XDM to setcheck
- if true, the non-existence of name
causes an error, otherwise the variable is createdresolve
- resolve/qualify name
MXQueryException
void setVariableValue(QName qname, XDMIterator iter) throws MXQueryException
qname
- the variable nameiter
- the iterator containing the XDM to set
MXQueryException
void bindVariableValue(QName qname, XDMIterator iter) throws MXQueryException
qname
- the variable nameiter
- the iterator containing the XDM to bind
MXQueryException
VariableHolder getVariable(QName qname) throws MXQueryException
qname
- the name of the variable
MXQueryException
VariableHolder getVariable(QName qname, boolean resolve) throws MXQueryException
qname
- the name of the variableresolve
- resolve the QName
MXQueryException
void incVariableUse(QName qname) throws MXQueryException
qname
- Variable name
MXQueryException
StoreSet getStores()
MXQueryDateTime getCurrentTime() throws MXQueryException
setCurrentTime(MXQueryDateTime)
was called).
MXQueryException
MXQueryDayTimeDuration getCurrentTimeZone() throws MXQueryException
setCurrentTime(MXQueryDateTime)
was called).
MXQueryException
void setCurrentTime(MXQueryDateTime dateTime)
dateTime
- the time to set as current time - if null, the current system time is usedvoid setCurrentTimeZone(java.util.TimeZone tz)
tz
- a Time ZoneVariableHolder getContextItem() throws MXQueryException
MXQueryException
void setContextItem(XDMIterator iter) throws MXQueryException
MXQueryException
|
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |