com.icl.saxon.expr
Class  FilterEnumerator
java.lang.Object
  |
  +--com.icl.saxon.expr.FilterEnumerator
- All Implemented Interfaces: 
- NodeEnumeration
- public class FilterEnumerator- extends java.lang.Object- implements NodeEnumeration
A FilterEnumerator filters an input NodeEnumeration using a filter expression.
 The complication is that on request, it must determine the value of the last() position,
 which requires a lookahead.
 
| Method Summary | 
|  boolean | hasMoreElements()Test whether there are any more nodes available in the enumeration
 | 
|  boolean | isPeer()Determine whether the nodes are guaranteed to be peers
 | 
|  boolean | isReverseSorted()Determine whether the nodes returned by this enumeration are known to be in
 reverse document order.
 | 
|  boolean | isSorted()Determine whether the nodes are guaranteed to be in document order
 | 
|  NodeInfo | nextElement()Get the next node if there is one
 | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
FilterEnumerator
public FilterEnumerator(NodeEnumeration base,
                        Expression filter,
                        Context context)
                 throws org.xml.sax.SAXException
- Constructor- 
- Parameters:
- base- A node-set expression denoting the absolute or relative set of nodes from which the
 navigation path should start.
- filter- The expression defining the filter predicate
- context- The context in which the expression is being evaluated
 
hasMoreElements
public boolean hasMoreElements()
- Test whether there are any more nodes available in the enumeration- 
- Specified by: 
- hasMoreElementsin interface- NodeEnumeration
 
- Following copied from interface: com.icl.saxon.expr.NodeEnumeration
- 
- Returns:
- true if there are more nodes
 
nextElement
public NodeInfo nextElement()
                     throws org.xml.sax.SAXException
- Get the next node if there is one- 
- Specified by: 
- nextElementin interface- NodeEnumeration
 
- Following copied from interface: com.icl.saxon.expr.NodeEnumeration
- 
- Returns:
- the next NodeInfo
 
isSorted
public boolean isSorted()
                 throws org.xml.sax.SAXException
- Determine whether the nodes are guaranteed to be in document order- 
- Specified by: 
- isSortedin interface- NodeEnumeration
 
- Following copied from interface: com.icl.saxon.expr.NodeEnumeration
- 
- Returns:
- true if the nodes are guaranteed to be in document order.
 
isReverseSorted
public boolean isReverseSorted()
                        throws org.xml.sax.SAXException
- Description copied from interface: NodeEnumeration
- Determine whether the nodes returned by this enumeration are known to be in
 reverse document order.- 
- Specified by: 
- isReverseSortedin interface- NodeEnumeration
 
- Following copied from interface: com.icl.saxon.expr.NodeEnumeration
- 
- Returns:
- true if the nodes are guaranteed to be in document order.
 
isPeer
public boolean isPeer()
               throws org.xml.sax.SAXException
- Determine whether the nodes are guaranteed to be peers- 
- Specified by: 
- isPeerin interface- NodeEnumeration