#include <coherence/util/ValueExtractor.hpp>
Inherits Object.
Inherited by NullImplementation::NullValueExtractor [virtual].
Important Note: all classes that implement the ValueExtractor interface must explicitly implement the Object::hashCode() and Object::equals methods in a way that is based solely on the object's serializable state.
Public Types | |
| typedef spec::Handle | Handle |
| ValueExtractor Handle definition. | |
| typedef spec::View | View |
| ValueExtractor View definition. | |
| typedef spec::Holder | Holder |
| ValueExtractor Holder definition. | |
Public Member Functions | |
| virtual Object::Holder | extract (Object::Holder ohTarget) const =0 |
| Extract the value from the passed object. | |
| virtual Object::Holder extract | ( | Object::Holder | ohTarget | ) | const [pure virtual] |
Extract the value from the passed object.
The returned value may be NULL.
| ohTarget | an Object to retrieve the value from |
| ClassCastException | if this ValueExtractor is incompatible with the passed object to extract a value from and the implementation requires the passed object to be of a certain type | |
| Exception | if this ValueExtractor encounters an exception in the course of extracting the value | |
| IllegalArgumentException | if this ValueExtractor cannot handle the passed object for any other reason; an implementor should include a descriptive message |