| java.lang.Object org.jaffa.components.finder.BooleanCriteriaField
BooleanCriteriaField | public class BooleanCriteriaField implements CriteriaField(Code) | | This class will be used by the Finder components to hold a Boolean criteria.
|
BooleanCriteriaField | public BooleanCriteriaField(String operator, Boolean value) throws IllegalArgumentException(Code) | | Adds a Criteria.
Parameters: operator - the operator of the criteria. Parameters: value - the value of the criteria. throws: 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'. |
BooleanCriteriaField | public BooleanCriteriaField(String operator, Boolean[] values) throws IllegalArgumentException(Code) | | Adds a Criteria.
Parameters: operator - the operator of the criteria. Parameters: values - the value array of the criteria. throws: 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'. |
BooleanCriteriaField | public BooleanCriteriaField()(Code) | | Default constructor.
NOTE: This was added to support tools, which create instances of this class by bean introspection. In all other cases, it is recommended to use the static methods to instantiate this class.
|
getBooleanCriteriaField | public static BooleanCriteriaField getBooleanCriteriaField(String operator, String value, BooleanFieldMetaData meta)(Code) | | This will generate a CriteriaField object based on the input parameters.
Parameters: operator - The operator of the criteria. Parameters: value - The value for the criteria. Multiple values should be separated by comma. Parameters: meta - The FieldMetaData object to obtain the layout for parsing. a CriteriaField object based on the input parameters. |
getOperator | public String getOperator()(Code) | | Getter for property operator.
Value of property operator. |
getValues | public Boolean[] getValues()(Code) | | Getter for property values.
An array of values for the Criteria. |
returnValuesAsObjectArray | public Object[] returnValuesAsObjectArray()(Code) | | Getter for property values.
This basically invokes the getValues() method.
An array of values for the Criteria. |
setOperator | public void setOperator(String operator)(Code) | | Setter for the property operator.
NOTE: This was added to support tools, which create instances of this class by bean introspection. In all other cases, it is recommended to use the static methods to instantiate this class.
Parameters: operator - The value of the property operator. |
setValues | public void setValues(Boolean[] values)(Code) | | Setter for the property values.
NOTE: This was added to support tools, which create instances of this class by bean introspection. In all other cases, it is recommended to use the static methods to instantiate this class.
Parameters: values - The value of the property values. |
toString | public String toString()(Code) | | Returns diagnostic information.
diagnostic information. |
|
|