public class LookForwardIterator
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 | 
|---|
| LookForwardIterator(java.util.Collection<net.sf.saxon.s9api.XdmValue> hsOutSeq,
                   XBRLVariableResourceUse var,
                   XBRLVariablesHolder set,
                   VariablesLoopController.InterfaceVariableSetIterator nestedIterator)Instantiates a new look forward and filter iterator. | 
| LookForwardIterator(net.sf.saxon.s9api.XdmValue value,
                   XBRLVariableResourceUse var,
                   XBRLVariablesHolder set,
                   VariablesLoopController.InterfaceVariableSetIterator nestedIterator)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. | 
| boolean | isNextFallbackValue()Checks if is next fallback value. | 
| net.sf.saxon.s9api.XdmValue | next()Next. | 
| void | restart()Restart. | 
| long | size()Size. | 
public LookForwardIterator(net.sf.saxon.s9api.XdmValue value,
                           XBRLVariableResourceUse var,
                           XBRLVariablesHolder set,
                           VariablesLoopController.InterfaceVariableSetIterator nestedIterator)
                    throws XFValidationException
value - the valuevar - the varset - the setnestedIterator - used to check for distinct binding when the next evaluation is the fallback valueXFValidationException - the XF validation exceptionpublic LookForwardIterator(java.util.Collection<net.sf.saxon.s9api.XdmValue> hsOutSeq,
                           XBRLVariableResourceUse var,
                           XBRLVariablesHolder set,
                           VariablesLoopController.InterfaceVariableSetIterator nestedIterator)
                    throws XFValidationException
hsOutSeq - the hs out seqvar - the varset - the setnestedIterator - used to check for distinct binding when the next evaluation is the fallback valueXFValidationException - 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()
public boolean isNextFallbackValue()
Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa