net.groboclown.xml.xdstates.v1.modules
Class VSelectEach

java.lang.Object
  |
  +--net.groboclown.xml.xdstates.v1.modules.AbstractVSelect
        |
        +--net.groboclown.xml.xdstates.v1.modules.VSelectEach
All Implemented Interfaces:
IPermuteValueModule, IValueModule

public class VSelectEach
extends AbstractVSelect

A generic value module that selects a subset of items from the underlying collection. The subclasses must getIndex(), setIndex(), and setHasMore() in its selection method.

Version:
Alpha 0.9.0 - JDK 1.2+
Author:
Matt Albrecht

Field Summary
private static String[] VALUES
           
 
Fields inherited from class net.groboclown.xml.xdstates.v1.modules.AbstractVSelect
hasMore, position, values
 
Constructor Summary
VSelectEach()
           
 
Method Summary
protected  AbstractVSelect copyAbstractVSelect()
           
protected  void select(IItem[] in, ArrayList out)
          Load the given out list with the selected items from the in list, using the current getIndex().
 
Methods inherited from class net.groboclown.xml.xdstates.v1.modules.AbstractVSelect
checkValue, copy, fire, getIndex, hasAnotherState, setHasMore, setIndex, shouldFireTreeParse
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

VALUES

private static final String[] VALUES
Constructor Detail

VSelectEach

public VSelectEach()
Method Detail

copyAbstractVSelect

protected AbstractVSelect copyAbstractVSelect()
Overrides:
copyAbstractVSelect in class AbstractVSelect

select

protected void select(IItem[] in,
                      ArrayList out)
Load the given out list with the selected items from the in list, using the current getIndex(). At the end of this method, the implementors must call setIndex() and setHasMore() to their correct state.

If the in item list is empty, then this method will not be called.

Overrides:
select in class AbstractVSelect


Written under the LGPL