com.cc.framework.util
Class Algorithms.CollectCheckableAlg

java.lang.Object
  extended bycom.cc.framework.util.Algorithms.CollectCheckableAlg
All Implemented Interfaces:
Algorithm
Enclosing class:
Algorithms

public static class Algorithms.CollectCheckableAlg
extends java.lang.Object
implements Algorithm

Algorithm to collect rows of a given check state


Field Summary
private  java.util.Map matches
          Matching items
private  CheckState query
          State to query for
 
Constructor Summary
Algorithms.CollectCheckableAlg(CheckState query)
          Constructor
 
Method Summary
 boolean execute(java.lang.String uniqueId, java.lang.Object obj)
          Completes the algorithm for an element in the collection.
 java.util.Map getMatches()
          Returns the matching items
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

query

private CheckState query
State to query for


matches

private java.util.Map matches
Matching items

Constructor Detail

Algorithms.CollectCheckableAlg

public Algorithms.CollectCheckableAlg(CheckState query)
Constructor

Parameters:
query - State to query for
Method Detail

getMatches

public java.util.Map getMatches()
Returns the matching items

Returns:
hashtable with matching items

execute

public boolean execute(java.lang.String uniqueId,
                       java.lang.Object obj)
                throws java.lang.Exception
Description copied from interface: Algorithm
Completes the algorithm for an element in the collection.

Specified by:
execute in interface Algorithm
Parameters:
uniqueId - Id
obj - Object
Returns:
boolean Returns true if the algorithm should also be processed for the other elements in the collection or false if the processing should be stopped.
Throws:
java.lang.Exception - Is thrown in case of an processing error
See Also:
Algorithm.execute(java.lang.String, java.lang.Object)


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.