|
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 | ||||||||
java.lang.Objectch.ethz.mxquery.model.Iterator
ch.ethz.mxquery.model.CurrentBasedIterator
ch.ethz.mxquery.iterators.IfThenElseIterator
public class IfThenElseIterator
| Field Summary |
|---|
| Fields inherited from interface ch.ethz.mxquery.model.XDMIterator |
|---|
EXPR_CATEGORY_SEQUENTIAL, EXPR_CATEGORY_SIMPLE, EXPR_CATEGORY_UPDATING, EXPR_CATEGORY_VACUOUS, EXPR_PARAM_CHEAPEVAL, EXPR_PARAM_VARIABLE, EXPR_PARAM_WINDOW, EXPR_PARAM_XDMGEN |
| Constructor Summary | |
|---|---|
IfThenElseIterator(Context ctx,
XDMIterator[] subIters,
QueryLocation location)
Constructor for the IfThenElseIterator |
|
| Method Summary | |
|---|---|
PendingUpdateList |
getPendingUpdateList()
Returns the complete Pending Update List (PUL) of this iterator. |
Token |
next()
Produces the next XDM token This method typically implements the base functionality of an Iterator and computes the value of the next token. |
KXmlSerializer |
traverseIteratorTree(KXmlSerializer serializer)
|
| Methods inherited from class ch.ethz.mxquery.model.Iterator |
|---|
addPredicates, close, copy, copyInts, copyIterators, copyQNames, copyStrings, copyTypeInfos, getAllSubIters, getAllSubItersRecursive, getContext, getExpressionCategoryType, getLoc, getPredicates, getStaticType, getSubIters, hasPredicates, isConstModePreserve, isExprParameter, isOpen, isResettable, removePredicates, reset, setConstModePreserve, setContext, setLoc, setOrderByExpr, setParam, setResettable, setReturnExpr, setSubIters, setSubIters, setSubIters, setWhereExpr, traverse |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IfThenElseIterator(Context ctx,
XDMIterator[] subIters,
QueryLocation location)
throws MXQueryException
subIters - Array of Expressions: first Expression is the IF condition;
second Expression is the THEN expression; third Expression is
the ELSE expression.
MXQueryException| Method Detail |
|---|
public Token next()
throws MXQueryException
XDMIterator
MXQueryException
public PendingUpdateList getPendingUpdateList()
throws MXQueryException
XDMIteratornull for non-updating expressions. Since the PUL is computed gradually (especially in a scripting environment, this function should only be called when the evaluation is complete.
For scripting, this function also merges the PULs of the child iterators, so
getPendingUpdateList in interface XDMIteratorgetPendingUpdateList in class IteratorMXQueryException
public KXmlSerializer traverseIteratorTree(KXmlSerializer serializer)
throws java.lang.Exception
traverseIteratorTree in interface XDMIteratortraverseIteratorTree in class Iteratorjava.lang.Exception
|
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 | ||||||||