public class LookForwardAndFilterIterator
extends java.lang.Object
This class wraps a ClsVarIterator so it looks forward on the surrounding iterator and performs a filter on the returned values. If the values pass the filter, then they will be returned in a call to next() (and the look forward process will start again) if the values do not pass the filter then a call to hasNext() will return false and no further calls to next() shall be performed.
| Constructor and Description |
|---|
LookForwardAndFilterIterator(java.util.Collection<net.sf.saxon.s9api.XdmValue> hsOutSeq,
XBRLVariableResourceUse var,
XBRLVariablesHolder set,
XFIImplicitFilterOptimizer optimizer,
Filter filter)
Instantiates a new look forward and filter iterator.
|
LookForwardAndFilterIterator(net.sf.saxon.s9api.XdmValue value,
XBRLVariableResourceUse var,
XBRLVariablesHolder set,
XFIImplicitFilterOptimizer optimizer,
Filter filter)
Instantiates a new look forward and filter iterator.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Checks for next.
|
boolean |
isFallbackValue()
Checks if is fallback value.
|
net.sf.saxon.s9api.XdmValue |
next()
Next.
|
void |
restart()
Restart.
|
long |
size()
Size.
|
public LookForwardAndFilterIterator(net.sf.saxon.s9api.XdmValue value,
XBRLVariableResourceUse var,
XBRLVariablesHolder set,
XFIImplicitFilterOptimizer optimizer,
Filter filter)
throws XFValidationException
value - the valuevar - the varset - the setoptimizer - the optimizerfilter - the filterXFValidationException - the XF validation exceptionpublic LookForwardAndFilterIterator(java.util.Collection<net.sf.saxon.s9api.XdmValue> hsOutSeq,
XBRLVariableResourceUse var,
XBRLVariablesHolder set,
XFIImplicitFilterOptimizer optimizer,
Filter filter)
throws XFValidationException
hsOutSeq - the hs out seqvar - the varset - the setoptimizer - the optimizerfilter - the filterXFValidationException - the XF validation exceptionpublic net.sf.saxon.s9api.XdmValue next()
public boolean hasNext()
throws XFValidationException
XFValidationException - the XF validation exceptionpublic void restart()
throws XFValidationException
XFValidationException - the XF validation exceptionpublic boolean isFallbackValue()
throws XFValidationException
XFValidationException - the XF validation exceptionpublic long size()