Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jdaemon.era
Class AbstractCube.StandardFilter  view AbstractCube.StandardFilter download AbstractCube.StandardFilter.java

java.lang.Object
  extended byorg.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


Field Summary
protected  java.lang.String attribute
           
protected  java.lang.Object operand
           
 
Constructor Summary
AbstractCube.StandardFilter(java.lang.String attribute, java.lang.Object operand)
          Constructor
 
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
 

Field Detail

attribute

protected java.lang.String attribute

operand

protected java.lang.Object operand
Constructor Detail

AbstractCube.StandardFilter

public AbstractCube.StandardFilter(java.lang.String attribute,
                                   java.lang.Object operand)
Constructor

Method Detail

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.