gistoolkit.datasources.filter
Class DateAttributeFilter

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

public class DateAttributeFilter
extends AttributeFilter

Class for filtering on attributes that are dates.


Field Summary
 
Fields inherited from class gistoolkit.datasources.filter.AttributeFilter
ATTRIBUTE_EQUALS, ATTRIBUTE_GREATER, ATTRIBUTE_LESS, ATTRIBUTE_VALUE
 
Constructor Summary
DateAttributeFilter()
          Creates new DateAttributeFilter, for use with the configuration utility only.
DateAttributeFilter(java.lang.String inAttributeName, int inComparison, java.util.Date inValue)
          Creates new DateAttributeFilter
 
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

DateAttributeFilter

public DateAttributeFilter()
Creates new DateAttributeFilter, for use with the configuration utility only.


DateAttributeFilter

public DateAttributeFilter(java.lang.String inAttributeName,
                           int inComparison,
                           java.util.Date inValue)
Creates new DateAttributeFilter

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