Package org.opennms.web.alarm.filter
Class NegativeSeverityFilter
- java.lang.Object
-
- org.opennms.web.filter.BaseFilter<T>
-
- org.opennms.web.filter.OneArgFilter<T>
-
- org.opennms.web.filter.NotEqualsFilter<OnmsSeverity>
-
- org.opennms.web.alarm.filter.NegativeSeverityFilter
-
- All Implemented Interfaces:
Filter
public class NegativeSeverityFilter extends NotEqualsFilter<OnmsSeverity>
Encapsulates negative severity filtering functionality, that is filtering OUT this value instead of only filtering IN this value.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
TYPE
-
Fields inherited from class org.opennms.web.filter.BaseFilter
m_filterName, m_sqlType
-
-
Constructor Summary
Constructors Constructor Description NegativeSeverityFilter(OnmsSeverity severity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
getSeverity()
java.lang.String
getTextDescription()
getTextDescriptionjava.lang.String
toString()
toString-
Methods inherited from class org.opennms.web.filter.NotEqualsFilter
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
-
Methods inherited from interface org.opennms.web.filter.Filter
getTextDescriptionAsSanitizedHtml
-
-
-
-
Field Detail
-
TYPE
public static final java.lang.String TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NegativeSeverityFilter
public NegativeSeverityFilter(OnmsSeverity severity)
-
-
Method Detail
-
getTextDescription
public java.lang.String getTextDescription()
Description copied from class:BaseFilter
getTextDescription
- Specified by:
getTextDescription
in interfaceFilter
- Overrides:
getTextDescription
in classOneArgFilter<OnmsSeverity>
- Returns:
- a
String
object.
-
toString
public java.lang.String toString()
Description copied from class:BaseFilter
toString
- Overrides:
toString
in classBaseFilter<OnmsSeverity>
- Returns:
- a
String
object.
-
getSeverity
public int getSeverity()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-