org.opennms.web.alarm.filter
Class NodeFilter

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.EqualsFilter<Integer>
              extended by org.opennms.web.alarm.filter.NodeFilter
All Implemented Interfaces:
Filter

public class NodeFilter
extends EqualsFilter<Integer>

Encapsulates all node filtering functionality.

Since:
1.8.1
Version:
$Id: $
Author:
ranger

Field Summary
static String TYPE
          Constant TYPE="node"
 
Fields inherited from class org.opennms.web.filter.BaseFilter
m_filterName, m_sqlType
 
Constructor Summary
NodeFilter(int nodeId, javax.servlet.ServletContext servletContext)
          Constructor for NodeFilter.
 
Method Summary
 boolean equals(Object obj)
          
 int getNodeId()
          getNodeId
 String getTextDescription()
          getTextDescription
 String toString()
          toString
 
Methods inherited from class org.opennms.web.filter.EqualsFilter
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
Constant TYPE="node"

See Also:
Constant Field Values
Constructor Detail

NodeFilter

public NodeFilter(int nodeId,
                  javax.servlet.ServletContext servletContext)

Constructor for NodeFilter.

Parameters:
nodeId - a int.
Method Detail

getTextDescription

public String getTextDescription()

getTextDescription

Specified by:
getTextDescription in interface Filter
Overrides:
getTextDescription in class EqualsFilter<Integer>
Returns:
a String object.

toString

public String toString()

toString

Overrides:
toString in class BaseFilter<Integer>
Returns:
a String object.

getNodeId

public int getNodeId()

getNodeId

Returns:
a int.

equals

public boolean equals(Object obj)

Overrides:
equals in class Object


Copyright © 2011. All Rights Reserved.