net.sf.adatagenerator.pred
Class StringPredicate<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>
All Implemented Interfaces:
ExportablePredicate<PredicateExporter.EXPORT_TYPE_JAVA,R>, Predicate<R>
Direct Known Subclasses:
TrimmedStringsLowerCase, TrimmedSubstringsLowerCase

Deprecated. Moved to the com.choicemaker.correlation package

public abstract class StringPredicate<R>
extends ReflectionPredicate<String,PredicateExporter.EXPORT_TYPE_JAVA,R>


Nested Class Summary
 
Nested classes/interfaces inherited from interface net.sf.adatagenerator.pred.ExportablePredicate
ExportablePredicate.CLUEMAKER_RECORD_VARIABLES
 
Field Summary
 
Fields inherited from class net.sf.adatagenerator.pred.ReflectionPredicate
logger, mFld, qFld, rFld
 
Fields inherited from interface net.sf.adatagenerator.pred.ExportablePredicate
m, q, r
 
Constructor Summary
StringPredicate(String predicateName, Class<? extends R> recordClass, String fieldName, com.choicemaker.shared.util.CMReflectionUtils.ACCESSOR_PREFIX p)
          Deprecated.  
StringPredicate(String predicateName, Method fieldAccessor)
          Deprecated. A predicate that checks whether the (String) values of a particular field for a pair of records have an edit distance strictly less than the specified maximum.
 
Method Summary
abstract  boolean evaluateFieldValues(String qVal, String mVal)
          Deprecated.  
 String exportEvaluationLogicAsString(PredicateExporter.EXPORT_TYPE_JAVA type)
          Deprecated. Subclasses shouldn't need to override this method; instead they should override one of the delegate methods:
  • exportEvaluationLogicToClueMaker()
  • #exportEvaluationLogicToNonChoiceMaker(EXPORT_TYPE_JAVA)
  • protected  String exportEvaluationLogicToClueMaker()
              Deprecated. This method always throws an ExportException.
    protected  String exportEvaluationLogicToNonChoiceMaker(PredicateExporter.EXPORT_TYPE_JAVA type)
              Deprecated. This method always throws an ExportException.
     String exportValidityLogicAsString(PredicateExporter.EXPORT_TYPE_JAVA type)
              Deprecated. Subclasses shouldn't need to override this method; instead they should override one of the delegate methods:
  • exportValidityLogicToClueMaker()
  • #exportValidityLogicToNonChoiceMaker(EXPORT_TYPE_JAVA)
  • protected  String exportValidityLogicToClueMaker()
              Deprecated. This method always throws an ExportException.
    protected  String exportValidityLogicToNonChoiceMaker(PredicateExporter.EXPORT_TYPE_JAVA type)
              Deprecated. This method always throws an ExportException.
    abstract  Set<PredicateExporter.EXPORT_TYPE_JAVA> getSupportedExportTypes()
              Deprecated.  
    abstract  boolean isFieldValidForEvaluation(String s)
              Deprecated.  
     
    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
     

    Constructor Detail

    StringPredicate

    public StringPredicate(String predicateName,
                           Method fieldAccessor)
    Deprecated. 
    A predicate that checks whether the (String) values of a particular field for a pair of records have an edit distance strictly less than the specified maximum.

    Parameters:
    predicateName - the name of this predicate
    fieldAccessor - a field accessor returning a String value
    maxDistance - the maximum edit distance (exclusive) between field values in order for them to be evaluated as significantly correlated

    StringPredicate

    public StringPredicate(String predicateName,
                           Class<? extends R> recordClass,
                           String fieldName,
                           com.choicemaker.shared.util.CMReflectionUtils.ACCESSOR_PREFIX p)
    Deprecated. 
    Method Detail

    isFieldValidForEvaluation

    public abstract boolean isFieldValidForEvaluation(String s)
    Deprecated. 
    Specified by:
    isFieldValidForEvaluation in class ReflectionPredicate<String,PredicateExporter.EXPORT_TYPE_JAVA,R>

    evaluateFieldValues

    public abstract boolean evaluateFieldValues(String qVal,
                                                String mVal)
    Deprecated. 
    Specified by:
    evaluateFieldValues in class ReflectionPredicate<String,PredicateExporter.EXPORT_TYPE_JAVA,R>

    getSupportedExportTypes

    public abstract Set<PredicateExporter.EXPORT_TYPE_JAVA> getSupportedExportTypes()
    Deprecated. 

    exportValidityLogicAsString

    public String exportValidityLogicAsString(PredicateExporter.EXPORT_TYPE_JAVA type)
                                       throws ExportException
    Deprecated. 
    Subclasses shouldn't need to override this method; instead they should override one of the delegate methods:

    Throws:
    ExportException

    exportEvaluationLogicAsString

    public String exportEvaluationLogicAsString(PredicateExporter.EXPORT_TYPE_JAVA type)
                                         throws ExportException
    Deprecated. 
    Subclasses shouldn't need to override this method; instead they should override one of the delegate methods:

    Throws:
    ExportException

    exportValidityLogicToClueMaker

    protected String exportValidityLogicToClueMaker()
                                             throws ExportException
    Deprecated. 
    This method always throws an ExportException. Subclasses should override this method to support exporting to ChoiceMaker ClueMaker version 2.5

    Parameters:
    type - a non-null type, excluding any enumeration member named #CLUEMAKER_25X.
    Throws:
    ExportException - unless overridden

    exportValidityLogicToNonChoiceMaker

    protected String exportValidityLogicToNonChoiceMaker(PredicateExporter.EXPORT_TYPE_JAVA type)
                                                  throws ExportException
    Deprecated. 
    This method always throws an ExportException. Subclasses should override this method to support export formats other than ChoiceMaker ClueMaker version 2.5

    Parameters:
    type - a non-null type, excluding any enumeration member named #CLUEMAKER_25X.
    Throws:
    ExportException - unless overridden

    exportEvaluationLogicToClueMaker

    protected String exportEvaluationLogicToClueMaker()
                                               throws ExportException
    Deprecated. 
    This method always throws an ExportException. Subclasses should override this method to support exporting to ChoiceMaker ClueMaker version 2.5

    Parameters:
    type - a non-null type, excluding any enumeration member named #CLUEMAKER_25X.
    Throws:
    ExportException - unless overridden

    exportEvaluationLogicToNonChoiceMaker

    protected String exportEvaluationLogicToNonChoiceMaker(PredicateExporter.EXPORT_TYPE_JAVA type)
                                                    throws ExportException
    Deprecated. 
    This method always throws an ExportException. Subclasses should override this method to support export formats other than ChoiceMaker ClueMaker version 2.5

    Parameters:
    type - a non-null type, excluding any enumeration member named #CLUEMAKER_25X.
    Throws:
    ExportException - unless overridden


    Copyright © 2011-2012. All Rights Reserved.