jsky.catalog
Interface SearchCondition

All Known Implementing Classes:
AbstractSearchCondition, ArraySearchCondition, RangeSearchCondition, ValueSearchCondition

public interface SearchCondition

An interface representing a search condition for values in a given table column, or parameters to a catalog query.


Method Summary
 FieldDesc getFieldDesc()
          Return the column or parameter description.
 java.lang.String getId()
          Return the column or parameter id.
 java.lang.String getName()
          Return the column or parameter name.
 java.lang.String getValueAsString()
          Return the value or values as a String in the format "value" or "val1,val2,val3".
 boolean isTrueFor(java.lang.Comparable val)
          Return true if the condition is true for the given value.
 boolean isTrueFor(double val)
          Return true if the condition is true for the given numeric value.
 java.lang.String toString()
          Return a string representation of this class in the form "name=minVal[,maxVal]"
 

Method Detail

isTrueFor

boolean isTrueFor(java.lang.Comparable val)
Return true if the condition is true for the given value.

Parameters:
val - The value to be checked against the condition.
Returns:
true if the value satisfies the condition.

isTrueFor

boolean isTrueFor(double val)
Return true if the condition is true for the given numeric value. If the condition was specified as a String, the return value is false.

Parameters:
val - The value to be checked against the condition.
Returns:
true if the value satisfies the condition.

getFieldDesc

FieldDesc getFieldDesc()
Return the column or parameter description.


getName

java.lang.String getName()
Return the column or parameter name.


getId

java.lang.String getId()
Return the column or parameter id.


getValueAsString

java.lang.String getValueAsString()
Return the value or values as a String in the format "value" or "val1,val2,val3".


toString

java.lang.String toString()
Return a string representation of this class in the form "name=minVal[,maxVal]"

Overrides:
toString in class java.lang.Object