org.jdaemon.era
Class AbstractCube.StandardFilter

java.lang.Object
org.jdaemon.era.AbstractCube.StandardFilter
- All Implemented Interfaces:
- Filter
- Direct Known Subclasses:
- AbstractCube.Equal, AbstractCube.Greater, AbstractCube.GreaterOrEqual, AbstractCube.Less, AbstractCube.LessOrEqual
- Enclosing class:
- AbstractCube
- private abstract class AbstractCube.StandardFilter
- extends java.lang.Object
- implements Filter
Base class for standard Filter implementations
|
Method Summary |
int |
compare(java.lang.Object object)
Finds a comparator for the named attribute with getComparator(attribute_name),
then finds the attribute value with getAttriubte(attribute_name, object). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jdaemon.era.Filter |
test |
attribute
protected java.lang.String attribute
operand
protected java.lang.Object operand
AbstractCube.StandardFilter
public AbstractCube.StandardFilter(java.lang.String attribute,
java.lang.Object operand)
- Constructor
compare
public int compare(java.lang.Object object)
- Finds a comparator for the named attribute with getComparator(attribute_name),
then finds the attribute value with getAttriubte(attribute_name, object). Finally uses
the comparator to compare the attribute value with the given value.