|
||||||||||
| 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.ExactMatchPredicate<E,R>
public class ExactMatchPredicate<E extends Enum<E>,R>
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface net.sf.adatagenerator.pred.ExportablePredicate |
|---|
ExportablePredicate.CLUEMAKER_RECORD_VARIABLES |
| Field Summary | |
|---|---|
static String |
CLUEMAKER_25X
Deprecated. A magic name for the name of an export enumeration element indicating that the export type is compatible with version 2.5 of the ChoiceMaker ClueMaker syntax. |
protected static Logger |
logger
Deprecated. |
String |
mFld
Deprecated. |
static boolean |
NULL_EQUALITY
Deprecated. |
String |
qFld
Deprecated. |
String |
rFld
Deprecated. |
| Fields inherited from interface net.sf.adatagenerator.pred.ExportablePredicate |
|---|
m, q, r |
| Constructor Summary | |
|---|---|
ExactMatchPredicate(String predicateName,
Class<? extends R> recordClass,
String fieldName,
com.choicemaker.shared.util.CMReflectionUtils.ACCESSOR_PREFIX p,
Set<E> supportedExportFormats)
Deprecated. |
|
ExactMatchPredicate(String predicateName,
Method fieldAccessor,
Set<E> supportedExportFormats)
Deprecated. Constructs a predicate that checks the field values of two records for exact equality. |
|
| Method Summary | |
|---|---|
boolean |
evaluateRecords(R q,
R m)
Deprecated. |
String |
exportEvaluationLogicAsString(E type)
Deprecated. |
String |
exportEvaluationLogicToClueMaker()
Deprecated. The default method for handling any export format named CLUEMAKER_25X. |
protected String |
exportEvaluationLogicToNonChoiceMaker(E type)
Deprecated. This method always throws an ExportException. |
String |
exportValidityLogicAsString(E type)
Deprecated. |
String |
exportValidityLogicToClueMaker()
Deprecated. The default method for handling any export format named CLUEMAKER_25X. |
protected String |
exportValidityLogicToNonChoiceMaker(E type)
Deprecated. This method always throws an ExportException. |
protected Method |
getFieldAccessor()
Deprecated. |
String |
getFieldNameStem()
Deprecated. |
Set<E> |
getSupportedExportTypes()
Deprecated. |
boolean |
isRecordValidForEvaluation(R r)
Deprecated. |
boolean |
isValidForEvaluation(R r)
Deprecated. |
| 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 |
|---|
protected static Logger logger
public static final boolean NULL_EQUALITY
public static final String CLUEMAKER_25X
public final String qFld
public final String mFld
public final String rFld
| Constructor Detail |
|---|
public ExactMatchPredicate(String predicateName,
Method fieldAccessor,
Set<E> supportedExportFormats)
predicateName - a name that will uniquely identify this predicate (in the
scope of a particular application) from any other predicate
with which in might be used.fieldAccessor - A method that returns the value of the target field from a
record.supportedExportFormats - the export formats supported by this predicate. This set may
be null or empty, in which case this predicate will throw an
ExportException if either
exportEvaluationLogicAsString(Enum) or
{@link #exportValidityLogicAsString(Enum) is invoked.
public ExactMatchPredicate(String predicateName,
Class<? extends R> recordClass,
String fieldName,
com.choicemaker.shared.util.CMReflectionUtils.ACCESSOR_PREFIX p,
Set<E> supportedExportFormats)
| Method Detail |
|---|
protected Method getFieldAccessor()
public String getFieldNameStem()
public boolean isRecordValidForEvaluation(R r)
isRecordValidForEvaluation in class AbstractPredicate<E extends Enum<E>,R>
public boolean evaluateRecords(R q,
R m)
throws Exception
evaluateRecords in class AbstractPredicate<E extends Enum<E>,R>Exceptionpublic boolean isValidForEvaluation(R r)
public Set<E> getSupportedExportTypes()
public String exportEvaluationLogicAsString(E type)
throws ExportException
ExportException
public String exportValidityLogicAsString(E type)
throws ExportException
ExportException
protected String exportValidityLogicToNonChoiceMaker(E 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
public String exportValidityLogicToClueMaker()
throws ExportException
CLUEMAKER_25X.
type - a non-null type named CLUEMAKER_25X. returns a
non-null, non-empty String that may be used as the validity
checking clause of a ClueMaker rule or
clue
ExportException
protected String exportEvaluationLogicToNonChoiceMaker(E 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
public String exportEvaluationLogicToClueMaker()
throws ExportException
CLUEMAKER_25X.
type - a non-null type named CLUEMAKER_25X. returns a
non-null, non-empty String that may be used as the logic
predicate of a ClueMaker rule or
clue that is executed after the validity checking
clause is satisfied.
ExportException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||