org.opennms.web.event.filter
Class NodeNameLikeFilter

java.lang.Object
  extended by org.opennms.web.filter.BaseFilter<T>
      extended by org.opennms.web.filter.OneArgFilter<String>
          extended by org.opennms.web.filter.SubstringFilter
              extended by org.opennms.web.event.filter.NodeNameLikeFilter
All Implemented Interfaces:
Filter

public class NodeNameLikeFilter
extends SubstringFilter

Encapsulates all node filtering functionality.


Field Summary
static String TYPE
           
 
Fields inherited from class org.opennms.web.filter.BaseFilter
m_filterName, m_sqlType
 
Constructor Summary
NodeNameLikeFilter(String substring)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getSQLTemplate()
           
 String getSubstring()
           
 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.SubstringFilter
formatValue, getBoundValue, getCriterion
 
Methods inherited from class org.opennms.web.filter.OneArgFilter
bindParam, getParamSql, getSql, getValue, getValueString
 
Methods inherited from class org.opennms.web.filter.BaseFilter
bindValue, 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
Constructor Detail

NodeNameLikeFilter

public NodeNameLikeFilter(String substring)
Method Detail

getSQLTemplate

public String getSQLTemplate()
Overrides:
getSQLTemplate in class SubstringFilter

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<String>

toString

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

getSubstring

public String getSubstring()

equals

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


Copyright © 2009. All Rights Reserved.