org.opennms.web.event.filter
Class NegativeServiceFilter

java.lang.Object
  extended by org.opennms.web.filter.BaseFilter<T>
      extended by org.opennms.web.filter.OneArgFilter<T>
          extended by org.opennms.web.filter.NotEqualOrNullFilter<Integer>
              extended by org.opennms.web.event.filter.NegativeServiceFilter
All Implemented Interfaces:
Filter

public class NegativeServiceFilter
extends NotEqualOrNullFilter<Integer>

Encapsulates all service filtering functionality.


Field Summary
protected  int serviceId
           
static String TYPE
           
 
Fields inherited from class org.opennms.web.filter.BaseFilter
m_filterName, m_sqlType
 
Constructor Summary
NegativeServiceFilter(int serviceId)
           
 
Method Summary
 boolean equals(Object obj)
           
 int getServiceId()
           
 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 org.opennms.web.filter.NotEqualOrNullFilter
getCriterion, getSQLTemplate
 
Methods inherited from class org.opennms.web.filter.OneArgFilter
bindParam, getBoundValue, getParamSql, getSql, getValue, getValueString
 
Methods inherited from class org.opennms.web.filter.BaseFilter
bindValue, formatValue, getDescription, getPropertyName, getSQLFieldName, getValueAsString
 
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

serviceId

protected int serviceId
Constructor Detail

NegativeServiceFilter

public NegativeServiceFilter(int serviceId)
Method Detail

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
Specified by:
getTextDescription in class BaseFilter<Integer>

toString

public String toString()
Overrides:
toString in class BaseFilter<Integer>

getServiceId

public int getServiceId()

equals

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


Copyright © 2009. All Rights Reserved.