ch.ethz.mxquery.iterators
Class VariableIterator
java.lang.Object
ch.ethz.mxquery.model.Iterator
ch.ethz.mxquery.model.CurrentBasedIterator
ch.ethz.mxquery.iterators.VariableIterator
- All Implemented Interfaces:
- XDMIterator, Traversable
public class VariableIterator
- extends CurrentBasedIterator
Methods inherited from class ch.ethz.mxquery.model.Iterator |
addPredicates, close, copy, copyInts, copyIterators, copyQNames, copyStrings, copyTypeInfos, getAllSubIters, getAllSubItersRecursive, getContext, getExpressionCategoryType, getLoc, getPendingUpdateList, getPredicates, getSubIters, hasPredicates, isConstModePreserve, isExprParameter, isOpen, removePredicates, reset, setConstModePreserve, setContext, setLoc, setOrderByExpr, setReturnExpr, setSubIters, setSubIters, setSubIters, setWhereExpr, traverse, traverseIteratorTree |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VariableIterator
public VariableIterator(Context ctx,
QName varname,
boolean resolveOnReset,
QueryLocation location)
VariableIterator
public VariableIterator(Context ctx,
QueryLocation location)
getVarQName
public QName getVarQName()
setParam
public void setParam(java.lang.String name,
java.lang.String value)
- Overrides:
setParam
in class Iterator
next
public Token next()
throws MXQueryException
- Description copied from interface:
XDMIterator
- Produces the next XDM token
This method typically implements the base functionality of an Iterator and
computes the value of the next token.
- Returns:
- The XDM token representing the next fragment of the XDM instance
- Throws:
MXQueryException
init
public void init()
throws MXQueryException
- Throws:
MXQueryException
getUnderlyingIterator
public Window getUnderlyingIterator()
throws MXQueryException
- Throws:
MXQueryException
setResettable
public void setResettable(boolean r)
throws MXQueryException
- Description copied from interface:
XDMIterator
- Set this Iterator (and its subiterators) resetable.
Resetable iterators may require more space (trading buffered data against recomputation)
- Specified by:
setResettable
in interface XDMIterator
- Overrides:
setResettable
in class Iterator
- Parameters:
r
- true make this iterator resetable, false make it not resetable
- Throws:
MXQueryException
isResettable
public boolean isResettable()
throws MXQueryException
- Description copied from interface:
XDMIterator
- Retrieve if this iterator is resetable
- Specified by:
isResettable
in interface XDMIterator
- Overrides:
isResettable
in class Iterator
- Returns:
- true this iterator is resetable, false it is not
- Throws:
MXQueryException
getStaticType
public TypeInfo getStaticType()
- Description copied from interface:
XDMIterator
- Return the return type if it can be statically determined
- Specified by:
getStaticType
in interface XDMIterator
- Overrides:
getStaticType
in class Iterator
- Returns:
- a Type info carrying the most precise static type that could be determined. If no specific type could be determined, the type is ITEM*
setReturnType
public void setReturnType(int type)
hasSharedAccess
public boolean hasSharedAccess()
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich