public class FlVariable extends FlXPathObject implements FlValue, java.util.Iterator<java.lang.Object>
Modifier and Type | Method and Description |
---|---|
boolean |
bindAsSequence()
Bind as sequence.
|
void |
compile()
Compile.
|
boolean |
evaluateVariable()
If the variable hasn't been evaluated before or is on the reset state a call to this method
will evaluate the XPath expression associated to the variable.
|
java.lang.Object |
getLastReturnedValue()
This method does not calculate the variable and can be called multiple times wihtout modifying the status of this object.
|
javax.xml.namespace.QName |
getName()
Gets the name.
|
net.sf.saxon.s9api.XdmValue |
getXPathResult()
This method return the value calculated as a call to the evaluate method.
|
boolean |
hasNext()
Returns true if the FlVariable has been evaluated, does not bind as a sequence, and the sequence has a next value to return.
|
java.lang.Object |
next()
Return the next object in the sequence if the FlVariable has been evaluated.
|
void |
remove() |
void |
reset()
Reset.
|
java.lang.String |
toString() |
java.lang.Object |
valueOrNext()
Return the FlVariable value or the next value in the sequence if this variable does not bind as sequence.
|
getXPathString, setNamespace, setNamespaces
evaluate, getFormulaProcessor
public javax.xml.namespace.QName getName()
public void compile() throws FlCompilationException
FlCompilationException
- the fl compilation exceptionpublic boolean bindAsSequence()
public void reset()
public boolean evaluateVariable() throws FormulaRuntimeException
FormulaRuntimeException
- the formula runtime exceptionpublic boolean hasNext()
hasNext
in interface java.util.Iterator<java.lang.Object>
public java.lang.Object next()
next
in interface java.util.Iterator<java.lang.Object>
public void remove()
remove
in interface java.util.Iterator<java.lang.Object>
public java.lang.Object getLastReturnedValue()
public java.lang.Object valueOrNext()
public net.sf.saxon.s9api.XdmValue getXPathResult()
getXPathResult
in interface FlValue
public java.lang.String toString()
toString
in class java.lang.Object
Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa