org.opennms.web.svclayer.outage
Class DateFilterPredicate

java.lang.Object
  extended by org.opennms.web.svclayer.outage.DateFilterPredicate
All Implemented Interfaces:
Predicate

public class DateFilterPredicate
extends Object
implements Predicate

Filter Predicate implementation which enable date comparison. Based on example code from: @author Nathan MA

Author:
Johan Edstrom

Field Summary
static String BETWEEN
          date between.
static String DELIM
          delimiters
static String GREATER_THAN_OR_EQUAL
          greater than or equal.
static String LESS_THAN_OR_EQUAL
          less than or equal.
static String NOT_EQUAL
          date not equal.
 
Constructor Summary
DateFilterPredicate(org.extremecomponents.table.core.TableModel model)
          Creates a new DateFilterPredicate object.
 
Method Summary
 boolean evaluate(Object bean)
          Use the filter parameters to filter out the table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LESS_THAN_OR_EQUAL

public static final String LESS_THAN_OR_EQUAL
less than or equal. usage: <= 18-12-1997

See Also:
Constant Field Values

GREATER_THAN_OR_EQUAL

public static final String GREATER_THAN_OR_EQUAL
greater than or equal. usage: >= 18-12-1997

See Also:
Constant Field Values

BETWEEN

public static final String BETWEEN
date between. usage: <> 18-12-1997 19-12-1997

See Also:
Constant Field Values

NOT_EQUAL

public static final String NOT_EQUAL
date not equal. ussage: != 18-12-2004

See Also:
Constant Field Values

DELIM

public static final String DELIM
delimiters

See Also:
Constant Field Values
Constructor Detail

DateFilterPredicate

public DateFilterPredicate(org.extremecomponents.table.core.TableModel model)
Creates a new DateFilterPredicate object.

Parameters:
model - table model
Method Detail

evaluate

public boolean evaluate(Object bean)
Use the filter parameters to filter out the table.

Specified by:
evaluate in interface Predicate


Copyright © 2009. All Rights Reserved.