com.cc.framework.util
Class Algorithms.CollectItemsAlg

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

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

Algorithm to collect all items of a List or Tree in a Map


Field Summary
private  java.util.Map map
          The collection where all Items should be stored
 
Constructor Summary
Algorithms.CollectItemsAlg(java.util.Map map)
          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 getMap()
          Returns the collection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

map

private java.util.Map map
The collection where all Items should be stored

Constructor Detail

Algorithms.CollectItemsAlg

public Algorithms.CollectItemsAlg(java.util.Map map)
Constructor

Parameters:
map - The collection where all Items should be stored
Method Detail

getMap

public java.util.Map getMap()
Returns the collection

Returns:
Map with all collected 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.