gistoolkit.datasources.filter
Class StringAttributeFilter

java.lang.Object
  extended bygistoolkit.datasources.filter.AttributeFilter
      extended bygistoolkit.datasources.filter.StringAttributeFilter
All Implemented Interfaces:
Filter
Direct Known Subclasses:
SQLStringAttributeFilter, SQLStringAttributeINFilter

public class StringAttributeFilter
extends AttributeFilter

Class for filtering on attributes that are strings.


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

StringAttributeFilter

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


StringAttributeFilter

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

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