gistoolkit.datasources.filter
Class NumberAttributeFilter

java.lang.Object
  extended bygistoolkit.datasources.filter.AttributeFilter
      extended bygistoolkit.datasources.filter.NumberAttributeFilter
All Implemented Interfaces:
Filter
Direct Known Subclasses:
SQLNumberAttributeFilter

public class NumberAttributeFilter
extends AttributeFilter

Class for filtering on attributes that are Numbers.


Field Summary
 
Fields inherited from class gistoolkit.datasources.filter.AttributeFilter
ATTRIBUTE_EQUALS, ATTRIBUTE_GREATER, ATTRIBUTE_LESS, ATTRIBUTE_VALUE
 
Constructor Summary
NumberAttributeFilter()
          Creates new NumberAttributeFilter, for use with the configuration utilities only.
NumberAttributeFilter(java.lang.String inAttributeName, int inComparison, double inValue)
          Creates new NumberAttributeFilter
 
Method Summary
 boolean contains(Record inRecord)
          Determiens if this record should be included in the subsequent set.
 java.lang.Object getAttributeValue()
          Get the attribute value to use in comparisons.
 Node getNode()
          Get the configuration information for this filter
 void setNode(Node inNode)
          Set the configuration information for this data source
 void setValue(java.lang.String inValue)
          Set the attribute value.
 
Methods inherited from class gistoolkit.datasources.filter.AttributeFilter
createFilterName, findAttribute, getAttributeName, getComparison, getFilterName, setAttributeName, setComparison, setFilterName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NumberAttributeFilter

public NumberAttributeFilter()
Creates new NumberAttributeFilter, for use with the configuration utilities only.


NumberAttributeFilter

public NumberAttributeFilter(java.lang.String inAttributeName,
                             int inComparison,
                             double inValue)
Creates new NumberAttributeFilter

Method Detail

getAttributeValue

public java.lang.Object getAttributeValue()
Get the attribute value to use in comparisons.

Specified by:
getAttributeValue in class AttributeFilter

contains

public boolean contains(Record inRecord)
Determiens if this record should be included in the subsequent set.


getNode

public Node getNode()
Get the configuration information for this filter

Specified by:
getNode in interface Filter
Overrides:
getNode in class AttributeFilter

setNode

public void setNode(Node inNode)
             throws java.lang.Exception
Set the configuration information for this data source

Specified by:
setNode in interface Filter
Overrides:
setNode in class AttributeFilter
Throws:
java.lang.Exception

setValue

public void setValue(java.lang.String inValue)
Set the attribute value.

Specified by:
setValue in class AttributeFilter