org.opennms.web.event.filter
Class AlarmIDFilter

java.lang.Object
  extended by org.opennms.web.event.filter.AlarmIDFilter
All Implemented Interfaces:
Filter

public class AlarmIDFilter
extends Object
implements Filter

Encapsulates all node filtering functionality.


Field Summary
protected  int alarmId
           
static String TYPE
           
 
Constructor Summary
AlarmIDFilter(int alarmId)
           
 
Method Summary
 boolean equals(Object obj)
           
 int getAlarmId()
           
 String getDescription()
          Returns a terse string (including a "=") that describes this filter in such a way to easily be included in an HTTP GET parameter.
 String getSql()
          Returns an expresions for a SQL where clause.
 String getTextDescription()
          Returns a terse but human-readable string describing this filter in such a way to easily be included in a search results list.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static final String TYPE
See Also:
Constant Field Values

alarmId

protected int alarmId
Constructor Detail

AlarmIDFilter

public AlarmIDFilter(int alarmId)
Method Detail

getSql

public String getSql()
Description copied from interface: Filter
Returns an expresions for a SQL where clause. Remember to include a trailing space, but no leading AND or OR.

Specified by:
getSql in interface Filter

getDescription

public String getDescription()
Description copied from interface: Filter
Returns a terse string (including a "=") that describes this filter in such a way to easily be included in an HTTP GET parameter.

Some examples:

Specified by:
getDescription in interface Filter

getTextDescription

public String getTextDescription()
Description copied from interface: Filter
Returns a terse but human-readable string describing this filter in such a way to easily be included in a search results list.

Some examples (corresponding to the examples in getDescription):

Specified by:
getTextDescription in interface Filter

toString

public String toString()
Overrides:
toString in class Object

getAlarmId

public int getAlarmId()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright ? 2007. All Rights Reserved.