org.kuali.student.contract.model.test.source
Class ComparisonInfo
java.lang.Object
org.kuali.student.contract.model.test.source.ComparisonInfo
- All Implemented Interfaces:
- Serializable, Comparison
public class ComparisonInfo
- extends Object
- implements Comparison, Serializable
- See Also:
- Serialized Form
Method Summary |
String |
getFieldKey()
Name: Field Key
Dot path notation to identity the name of field to be compared |
String |
getOperator()
Name: Operator
Operator to use to compare the field to the value. |
List<String> |
getValues()
Name: Criteria Value(s)
Value to be compared |
boolean |
isIgnoreCase()
Name: Ignore Case?
Check if should ignore case when doing the comparison
Default is false
If true then the case of both the specified comparison value(s) and the data value from the field should be ignored |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
fieldKey
private final String fieldKey
operator
private final String operator
values
private final List<String> values
ignoreCase
private final boolean ignoreCase
_futureElements
private final List<Element> _futureElements
ComparisonInfo
private ComparisonInfo()
ComparisonInfo
private ComparisonInfo(Comparison bldr)
getFieldKey
public String getFieldKey()
- Description copied from interface:
Comparison
- Name: Field Key
Dot path notation to identity the name of field to be compared
- Specified by:
getFieldKey
in interface Comparison
getOperator
public String getOperator()
- Description copied from interface:
Comparison
- Name: Operator
Operator to use to compare the field to the value. The valid values are:
- =
- in
- <
- !=
- >=
- <=
- like
- between
The operators should work similar to their corresponding SQL operators.
Complex objects can only be checked to see if they are null or not null.
"in" operator takes a list of values
"between" operator takes two values for from and thru inclusive
all others take a single value
TODO: Decide for complex Lists can they be checked to see how many occurences they have?
TODO: Decide on other operators
TODO: Deicde on operators to search collections inside such as any
TODO: Decide how to search on dynamic attributes
- Specified by:
getOperator
in interface Comparison
getValues
public List<String> getValues()
- Description copied from interface:
Comparison
- Name: Criteria Value(s)
Value to be compared
- Specified by:
getValues
in interface Comparison
isIgnoreCase
public boolean isIgnoreCase()
- Description copied from interface:
Comparison
- Name: Ignore Case?
Check if should ignore case when doing the comparison
Default is false
If true then the case of both the specified comparison value(s) and the data value from the field should be ignored
- Specified by:
isIgnoreCase
in interface Comparison
Copyright © 2007-2012 The Kuali Foundation. All Rights Reserved.