net.sf.adatagenerator.pred
Class TrimmedStringsLowerCase<R>

java.lang.Object
  extended by net.sf.adatagenerator.pred.AbstractPredicate<E,R>
      extended by net.sf.adatagenerator.pred.ReflectionPredicate<String,PredicateExporter.EXPORT_TYPE_JAVA,R>
          extended by net.sf.adatagenerator.pred.StringPredicate<R>
              extended by net.sf.adatagenerator.pred.TrimmedStringsLowerCase<R>
Type Parameters:
R - the record type
All Implemented Interfaces:
ExportablePredicate<PredicateExporter.EXPORT_TYPE_JAVA,R>, Predicate<R>

Deprecated. Moved to the com.choicemaker.correlation.predicates package

public class TrimmedStringsLowerCase<R>
extends StringPredicate<R>

A predicate that checks whether the (String) values of a particular field for a pair of records are equal after they have been trimmed and converted to lower case.

Author:
rphall

Nested Class Summary
 
Nested classes/interfaces inherited from interface net.sf.adatagenerator.pred.ExportablePredicate
ExportablePredicate.CLUEMAKER_RECORD_VARIABLES
 
Field Summary
protected static Logger logger
          Deprecated.  
 
Fields inherited from class net.sf.adatagenerator.pred.ReflectionPredicate
mFld, qFld, rFld
 
Fields inherited from interface net.sf.adatagenerator.pred.ExportablePredicate
m, q, r
 
Constructor Summary
TrimmedStringsLowerCase(String predicateName, Method fieldAccessor)
          Deprecated. Constructs a predicate
 
Method Summary
 boolean evaluateFieldValues(String qVal, String mVal)
          Deprecated.  
 String exportEvaluationLogicToClueMaker()
          Deprecated. This method always throws an ExportException.
 String exportValidityLogicToClueMaker()
          Deprecated. This method always throws an ExportException.
 Set<PredicateExporter.EXPORT_TYPE_JAVA> getSupportedExportTypes()
          Deprecated.  
 boolean isFieldValidForEvaluation(String s)
          Deprecated.  
 
Methods inherited from class net.sf.adatagenerator.pred.StringPredicate
exportEvaluationLogicAsString, exportEvaluationLogicToNonChoiceMaker, exportValidityLogicAsString, exportValidityLogicToNonChoiceMaker
 
Methods inherited from class net.sf.adatagenerator.pred.ReflectionPredicate
evaluateRecords, getFieldAccessor, getFieldNameStem, getFieldType, isRecordValidForEvaluation
 
Methods inherited from class net.sf.adatagenerator.pred.AbstractPredicate
evaluate, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static Logger logger
Deprecated. 
Constructor Detail

TrimmedStringsLowerCase

public TrimmedStringsLowerCase(String predicateName,
                               Method fieldAccessor)
Deprecated. 
Constructs a predicate

Parameters:
predicateName - the name of this predicate
fieldAccessor - a field accessor returning a String value
Method Detail

isFieldValidForEvaluation

public boolean isFieldValidForEvaluation(String s)
Deprecated. 
Specified by:
isFieldValidForEvaluation in class StringPredicate<R>

evaluateFieldValues

public boolean evaluateFieldValues(String qVal,
                                   String mVal)
Deprecated. 
Specified by:
evaluateFieldValues in class StringPredicate<R>

getSupportedExportTypes

public Set<PredicateExporter.EXPORT_TYPE_JAVA> getSupportedExportTypes()
Deprecated. 
Specified by:
getSupportedExportTypes in interface ExportablePredicate<PredicateExporter.EXPORT_TYPE_JAVA,R>
Specified by:
getSupportedExportTypes in class StringPredicate<R>

exportValidityLogicToClueMaker

public String exportValidityLogicToClueMaker()
                                      throws ExportException
Deprecated. 
Description copied from class: StringPredicate
This method always throws an ExportException. Subclasses should override this method to support exporting to ChoiceMaker ClueMaker version 2.5

Overrides:
exportValidityLogicToClueMaker in class StringPredicate<R>
Throws:
ExportException - unless overridden

exportEvaluationLogicToClueMaker

public String exportEvaluationLogicToClueMaker()
                                        throws ExportException
Deprecated. 
Description copied from class: StringPredicate
This method always throws an ExportException. Subclasses should override this method to support exporting to ChoiceMaker ClueMaker version 2.5

Overrides:
exportEvaluationLogicToClueMaker in class StringPredicate<R>
Throws:
ExportException - unless overridden


Copyright © 2011-2012. All Rights Reserved.