org.kuali.student.contract.model.test.source
Class ComparisonInfo.Builder

java.lang.Object
  extended by org.kuali.student.contract.model.test.source.ComparisonInfo.Builder
All Implemented Interfaces:
Comparison, ModelBuilder<ComparisonInfo>
Enclosing class:
ComparisonInfo

public static class ComparisonInfo.Builder
extends Object
implements ModelBuilder<ComparisonInfo>, Comparison


Constructor Summary
ComparisonInfo.Builder()
           
ComparisonInfo.Builder(Comparison infc)
           
 
Method Summary
 ComparisonInfo build()
           
 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
 ComparisonInfo.Builder setFieldKey(String fieldKey)
           
 void setIgnoreCase(boolean ignoreCase)
           
 ComparisonInfo.Builder setOperator(String operator)
           
 void setValue(String value)
          convenience method
 void setValues(List<String> values)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComparisonInfo.Builder

public ComparisonInfo.Builder()

ComparisonInfo.Builder

public ComparisonInfo.Builder(Comparison infc)
Method Detail

build

public ComparisonInfo build()
Specified by:
build in interface ModelBuilder<ComparisonInfo>

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:
  1. =
  2. in
  3. <
  4. !=
  5. >=
  6. <=
  7. like
  8. 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

setFieldKey

public ComparisonInfo.Builder setFieldKey(String fieldKey)

setOperator

public ComparisonInfo.Builder setOperator(String operator)

setValue

public void setValue(String value)
convenience method

Parameters:
value -

setValues

public void setValues(List<String> values)

setIgnoreCase

public void setIgnoreCase(boolean ignoreCase)


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.