org.fuin.utils4j.filter
Class ComparablePropertyFilter

java.lang.Object
  extended by org.fuin.utils4j.filter.PropertyFilter
      extended by org.fuin.utils4j.filter.ComparablePropertyFilter
All Implemented Interfaces:
Filter
Direct Known Subclasses:
IntegerPropertyFilter

public abstract class ComparablePropertyFilter
extends PropertyFilter

Defines a filter on a Comparable property.


Constructor Summary
ComparablePropertyFilter(java.lang.String newPropertyName, ComparableFilter filter)
          Constructor with a property and an operator.
 
Method Summary
 boolean complies(java.lang.Object obj)
          Checks if the argument complies with the condition of the filter.
protected  ComparableFilter getFilter()
          Returns the filter used for compare operations.
 ComparableFilter.Operator getOperator()
          Returns the operator for compare operations.
 java.lang.String getOperatorName()
          Returns the operator for compare operations.
 java.lang.String toString()
          
 
Methods inherited from class org.fuin.utils4j.filter.PropertyFilter
getProperty, getPropertyName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComparablePropertyFilter

public ComparablePropertyFilter(java.lang.String newPropertyName,
                                ComparableFilter filter)
Constructor with a property and an operator.

Parameters:
newPropertyName - Name of the property.
filter - Filter to use.
Method Detail

complies

public final boolean complies(java.lang.Object obj)
Checks if the argument complies with the condition of the filter.

Parameters:
obj - Object to be tested for compliance
Returns:
If object complies TRUE else FALSE is returned.

toString

public final java.lang.String toString()

Overrides:
toString in class java.lang.Object

getFilter

protected final ComparableFilter getFilter()
Returns the filter used for compare operations.

Returns:
Filter.

getOperator

public final ComparableFilter.Operator getOperator()
Returns the operator for compare operations.

Returns:
Operator.

getOperatorName

public final java.lang.String getOperatorName()
Returns the operator for compare operations.

Returns:
Operator.


Copyright © 2009 Future Invent Informationsmanagement GmbH. All Rights Reserved.