| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jaffa.components.finder.DateOnlyCriteriaField
This class will be used by the Finder components to hold a DateOnly criteria.
| Field Summary | 
| Constructor Summary | |
| DateOnlyCriteriaField()Default constructor. | |
| DateOnlyCriteriaField(String operator,
                                           DateOnly value)Adds a Criteria. | |
| DateOnlyCriteriaField(String operator,
                                           DateOnly[] values)Adds a Criteria. | |
| Method Summary | |
| static DateOnlyCriteriaField | getDateOnlyCriteriaField(String operator,
                                                 String value,
                                                 DateOnlyFieldMetaData meta)This will generate a CriteriaField object based on the input parameters. | 
|  String | getOperator()Getter for property operator. | 
|  DateOnly[] | getValues()Getter for property values. | 
|  Object[] | returnValuesAsObjectArray()Getter for property values. | 
|  void | setOperator(String operator)Setter for the property operator. | 
|  void | setValues(DateOnly[] 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 DateOnlyCriteriaField(String operator,
                             DateOnly 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 DateOnlyCriteriaField(String operator,
                             DateOnly[] 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 DateOnlyCriteriaField()
| Method Detail | 
public String getOperator()
getOperator in interface CriteriaFieldpublic Object[] returnValuesAsObjectArray()
returnValuesAsObjectArray in interface CriteriaFieldpublic DateOnly[] getValues()
public String toString()
public static DateOnlyCriteriaField getDateOnlyCriteriaField(String operator,
                                                             String value,
                                                             DateOnlyFieldMetaData meta)
                                                      throws FormatDateOnlyException
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.
FormatDateOnlyException - if the value is incorrectly formatted.public void setOperator(String operator)
operator - The value of the property operator.public void setValues(DateOnly[] values)
values - The value of the property values.| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||