|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgistoolkit.datasources.filter.AttributeFilter
Base class for filtering Attributes.
Field Summary | |
static int |
ATTRIBUTE_EQUALS
Returns all the records where this attribute is equal to this value. |
static int |
ATTRIBUTE_GREATER
Returns all the records where this attribute is greater than this value. |
static int |
ATTRIBUTE_LESS
Returns all the records where this attribute is less than this value. |
protected static java.lang.String |
ATTRIBUTE_VALUE
|
Constructor Summary | |
AttributeFilter()
|
Method Summary | |
java.lang.String |
createFilterName()
Construct the filter name |
protected int |
findAttribute(Record inRecord)
Finds the attribute in the attribute array, returns -1 if it is not found. |
java.lang.String |
getAttributeName()
Get the attribute name to use in comparisons. |
abstract java.lang.Object |
getAttributeValue()
Return the attribute value. |
int |
getComparison()
Returns the type of comparison to perform. |
java.lang.String |
getFilterName()
Get the name for this filter. |
Node |
getNode()
Get the configuration information for this filter |
protected void |
setAttributeName(java.lang.String inAttributeName)
Set the attribute name to use in comparisons. |
protected void |
setComparison(int inComparison)
Sets the comparison to use. |
void |
setFilterName(java.lang.String inFilterName)
Set the name for this filter. |
void |
setNode(Node inNode)
Set the configuration information for this data source |
abstract void |
setValue(java.lang.String inValue)
Set the attribute value. |
java.lang.String |
toString()
The tostring for this filter will nust return the name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface gistoolkit.datasources.filter.Filter |
contains |
Field Detail |
public static final int ATTRIBUTE_EQUALS
public static final int ATTRIBUTE_GREATER
public static final int ATTRIBUTE_LESS
protected static final java.lang.String ATTRIBUTE_VALUE
Constructor Detail |
public AttributeFilter()
Method Detail |
public void setFilterName(java.lang.String inFilterName)
public java.lang.String getFilterName()
getFilterName
in interface Filter
protected void setComparison(int inComparison)
public int getComparison()
protected void setAttributeName(java.lang.String inAttributeName)
public java.lang.String getAttributeName()
public abstract java.lang.Object getAttributeValue()
public abstract void setValue(java.lang.String inValue)
protected int findAttribute(Record inRecord)
public java.lang.String toString()
public java.lang.String createFilterName()
public Node getNode()
getNode
in interface Filter
public void setNode(Node inNode) throws java.lang.Exception
setNode
in interface Filter
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |