com.cc.framework.util
Class Checker

java.lang.Object
  extended bycom.cc.framework.util.Checker
All Implemented Interfaces:
Algorithm

public class Checker
extends java.lang.Object
implements Algorithm

Algorithm for changing the check state in a collection of objects which implements the checkable interfaces

Since:
1.0
Version:
$Revision: 1.17 $
Author:
Harald Schulz
See Also:
Checkable

Field Summary
private  boolean check
          Type of selection (true if the items should be checked)
private  java.lang.String key
          Object whose state should be changed
private  SelectMode mode
          The select mode
 
Constructor Summary
Checker(SelectMode mode, boolean check)
          Constructor for Checker
Checker(SelectMode mode, java.lang.String key, boolean check)
          Constructor for Checker
 
Method Summary
 boolean execute(java.lang.String uniqueId, java.lang.Object obj)
          Completes the algorithm for an element in the collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mode

private SelectMode mode
The select mode


key

private java.lang.String key
Object whose state should be changed


check

private boolean check
Type of selection (true if the items should be checked)

Constructor Detail

Checker

public Checker(SelectMode mode,
               boolean check)
Constructor for Checker

Parameters:
mode - The select mode
check - true if the Items should be checked, false otherwise
See Also:
SelectMode

Checker

public Checker(SelectMode mode,
               java.lang.String key,
               boolean check)
Constructor for Checker

Parameters:
mode - The select mode
key - Key of the object whose state should be changed
check - true if the Items should be checked, false otherwise
See Also:
SelectMode
Method Detail

execute

public boolean execute(java.lang.String uniqueId,
                       java.lang.Object obj)
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.
See Also:
Algorithm.execute(String uniqueId, Object obj)


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