com.cgiams.esl.service
Class ValueListResultContextImpl

java.lang.Object
  extended bycom.cgiams.esl.service.ValueListResultContextImpl
All Implemented Interfaces:
ValueListResultContext

public class ValueListResultContextImpl
extends java.lang.Object
implements ValueListResultContext

Primary implementation class for the ValueListResultContext interface.

Author:
sbowers

Constructor Summary
ValueListResultContextImpl()
          Default empty constructor.
 
Method Summary
 java.lang.String getListID()
          This method returns the ID associated with this particular result context object.
 java.util.List getListOfValues()
          This method retrieves the current list of values generated from the ValueListHandler.getValueObjects() method call.
 boolean hasMoreValues()
          Call this method to determine whether the list contained in this result context is the complete list of values.
 void setListID(java.lang.String as_list_id)
           
 void setListOfValues(java.util.List ao_results)
           
 void setMoreValues(boolean ab_more_values)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueListResultContextImpl

public ValueListResultContextImpl()
Default empty constructor.

Method Detail

getListID

public java.lang.String getListID()
This method returns the ID associated with this particular result context object. It is the same ID that was used when calling the ValueListHandler.getValueObjects() method.

Specified by:
getListID in interface ValueListResultContext
Returns:
The id used to produce this list of value objects.
Throws:
java.lang.IllegalStateException - If the list id is not specified.

hasMoreValues

public boolean hasMoreValues()
Call this method to determine whether the list contained in this result context is the complete list of values.

Specified by:
hasMoreValues in interface ValueListResultContext
Returns:
False if the list within this object represents all the values returned from the ValueListHandler.getValueObjects() call, otherwise True.

getListOfValues

public java.util.List getListOfValues()
This method retrieves the current list of values generated from the ValueListHandler.getValueObjects() method call. Each item from the list is a Java Object and must be explicitly cast to the final object type.

Specified by:
getListOfValues in interface ValueListResultContext
Returns:
A List of value objects.

setMoreValues

public void setMoreValues(boolean ab_more_values)
Parameters:
ab_more_values - The ib_more_values to set.

setListOfValues

public void setListOfValues(java.util.List ao_results)
Parameters:
ao_results - The io_results to set.

setListID

public void setListID(java.lang.String as_list_id)
Parameters:
as_list_id - The is_list_id to set.