ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/owl/trunk/actionTools/Retriever.java
Revision: 369
Committed: Thu Oct 25 13:51:00 2007 UTC (17 years, 4 months ago) by lpetzo
File size: 621 byte(s)
Log Message:
This package provides a set of very basic abstract classes serving as interfaces to very basic tasks such as:

1. condition checkings (class Checker),
2. data retrieval (class Retriever) and 
3. pure workers that perform any kind of actions that do not depend on any kind of input data (class Doer).

Each of these classes is a subclass of class Action which only purpose is to store the object affected by the subclasses action method.
Line User Rev File contents
1 lpetzo 369 package actionTools;
2    
3     /**
4     * @author Lars Petzold
5     *
6     * The purpose of this class is to provide an abstract strategy to retrieve
7     * data from a source and store it in target object. Therefore, you have to
8     * implement function <code>retrieve(Object obj)</code> as it suits best your
9     * requirements. The data to be stored might violate the storable data type,
10     * hence, this function throws <code>java.lang.ClassCastExceptions</code>.
11     */
12    
13     public abstract class Retriever extends Action {
14     public Retriever(Object obj) {
15     super(obj);
16     }
17     public abstract void retrieve(Object obj) throws ClassCastException;
18     }