|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.adatagenerator.pred.AbstractPredicate<E,R>
net.sf.adatagenerator.pred.ReflectionPredicate<String,PredicateExporter.EXPORT_TYPE_JAVA,R>
net.sf.adatagenerator.pred.StringPredicate<R>
public abstract class StringPredicate<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 |
|---|
public StringPredicate(String predicateName,
Method fieldAccessor)
predicateName - the name of this predicatefieldAccessor - a field accessor returning a String valuemaxDistance - the maximum edit distance (exclusive) between field values in
order for them to be evaluated as significantly correlated
public StringPredicate(String predicateName,
Class<? extends R> recordClass,
String fieldName,
com.choicemaker.shared.util.CMReflectionUtils.ACCESSOR_PREFIX p)
| Method Detail |
|---|
public abstract boolean isFieldValidForEvaluation(String s)
isFieldValidForEvaluation in class ReflectionPredicate<String,PredicateExporter.EXPORT_TYPE_JAVA,R>
public abstract boolean evaluateFieldValues(String qVal,
String mVal)
evaluateFieldValues in class ReflectionPredicate<String,PredicateExporter.EXPORT_TYPE_JAVA,R>public abstract Set<PredicateExporter.EXPORT_TYPE_JAVA> getSupportedExportTypes()
public String exportValidityLogicAsString(PredicateExporter.EXPORT_TYPE_JAVA type)
throws ExportException
exportValidityLogicToClueMaker()
#exportValidityLogicToNonChoiceMaker(EXPORT_TYPE_JAVA)
ExportException
public String exportEvaluationLogicAsString(PredicateExporter.EXPORT_TYPE_JAVA type)
throws ExportException
exportEvaluationLogicToClueMaker()
#exportEvaluationLogicToNonChoiceMaker(EXPORT_TYPE_JAVA)
ExportException
protected String exportValidityLogicToClueMaker()
throws ExportException
ExportException. Subclasses
should override this method to support exporting to ChoiceMaker ClueMaker
version 2.5
type - a non-null type, excluding any enumeration member named
#CLUEMAKER_25X.
ExportException - unless overridden
protected String exportValidityLogicToNonChoiceMaker(PredicateExporter.EXPORT_TYPE_JAVA type)
throws ExportException
ExportException. Subclasses
should override this method to support export formats other than
ChoiceMaker ClueMaker version 2.5
type - a non-null type, excluding any enumeration member named
#CLUEMAKER_25X.
ExportException - unless overridden
protected String exportEvaluationLogicToClueMaker()
throws ExportException
ExportException. Subclasses
should override this method to support exporting to ChoiceMaker ClueMaker
version 2.5
type - a non-null type, excluding any enumeration member named
#CLUEMAKER_25X.
ExportException - unless overridden
protected String exportEvaluationLogicToNonChoiceMaker(PredicateExporter.EXPORT_TYPE_JAVA type)
throws ExportException
ExportException. Subclasses
should override this method to support export formats other than
ChoiceMaker ClueMaker version 2.5
type - a non-null type, excluding any enumeration member named
#CLUEMAKER_25X.
ExportException - unless overridden
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||