| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jaffa.components.finder.DecimalCriteriaField
This class will be used by the Finder components to hold a Decimal criteria.
| Field Summary | 
| Constructor Summary | |
| DecimalCriteriaField()Default constructor. | |
| DecimalCriteriaField(String operator,
                                         Double value)Adds a Criteria. | |
| DecimalCriteriaField(String operator,
                                         Double[] values)Adds a Criteria. | |
| Method Summary | |
| static DecimalCriteriaField | getDecimalCriteriaField(String operator,
                                               String value,
                                               DecimalFieldMetaData meta)This will generate a CriteriaField object based on the input parameters. | 
|  String | getOperator()Getter for property operator. | 
|  Double[] | getValues()Getter for property values. | 
|  Object[] | returnValuesAsObjectArray()Getter for property values. | 
|  void | setOperator(String operator)Setter for the property operator. | 
|  void | setValues(Double[] values)Setter for the property values. | 
|  String | toString()Returns diagnostic information. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
public DecimalCriteriaField(String operator,
                            Double value)
                     throws IllegalArgumentException
operator - the operator of the criteria.value - the value of the criteria.
IllegalArgumentException - if the operator is null. The exception will also be thrown if the value is null and the operator is neither 'IsNull' nor 'IsNotNull'.
public DecimalCriteriaField(String operator,
                            Double[] values)
                     throws IllegalArgumentException
operator - the operator of the criteria.values - the value array of the criteria.
IllegalArgumentException - if the operator is null. The exception will also be thrown if the value is null and the operator is neither 'IsNull' nor 'IsNotNull'.public DecimalCriteriaField()
| Method Detail | 
public String getOperator()
getOperator in interface CriteriaFieldpublic Object[] returnValuesAsObjectArray()
returnValuesAsObjectArray in interface CriteriaFieldpublic Double[] getValues()
public String toString()
public static DecimalCriteriaField getDecimalCriteriaField(String operator,
                                                           String value,
                                                           DecimalFieldMetaData meta)
                                                    throws FormatDecimalException
operator - The operator of the criteria.value - The value for the criteria. Multiple values should be separated by comma.meta - The FieldMetaData object to obtain the layout for parsing.
FormatDecimalException - if the value is incorrectly formatted.public void setOperator(String operator)
operator - The value of the property operator.public void setValues(Double[] values)
values - The value of the property values.| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||