net.sf.adatagenerator.pred
Class ExactMatchPredicate<E extends Enum<E>,R>

java.lang.Object
  extended by net.sf.adatagenerator.pred.AbstractPredicate<E,R>
      extended by net.sf.adatagenerator.pred.ExactMatchPredicate<E,R>
All Implemented Interfaces:
ExportablePredicate<E,R>, Predicate<R>

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

public class ExactMatchPredicate<E extends Enum<E>,R>
extends AbstractPredicate<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

logger

protected static Logger logger
Deprecated. 

NULL_EQUALITY

public static final boolean NULL_EQUALITY
Deprecated. 
See Also:
Constant Field Values

CLUEMAKER_25X

public static final 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.

See Also:
Constant Field Values

qFld

public final String qFld
Deprecated. 

mFld

public final String mFld
Deprecated. 

rFld

public final String rFld
Deprecated. 
Constructor Detail

ExactMatchPredicate

public ExactMatchPredicate(String predicateName,
                           Method fieldAccessor,
                           Set<E> supportedExportFormats)
Deprecated. 
Constructs a predicate that checks the field values of two records for exact equality. (Null are considered unequal.)

Parameters:
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.

ExactMatchPredicate

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

getFieldAccessor

protected Method getFieldAccessor()
Deprecated. 

getFieldNameStem

public String getFieldNameStem()
Deprecated. 

isRecordValidForEvaluation

public boolean isRecordValidForEvaluation(R r)
Deprecated. 
Specified by:
isRecordValidForEvaluation in class AbstractPredicate<E extends Enum<E>,R>

evaluateRecords

public boolean evaluateRecords(R q,
                               R m)
                        throws Exception
Deprecated. 
Specified by:
evaluateRecords in class AbstractPredicate<E extends Enum<E>,R>
Throws:
Exception

isValidForEvaluation

public boolean isValidForEvaluation(R r)
Deprecated. 

getSupportedExportTypes

public Set<E> getSupportedExportTypes()
Deprecated. 

exportEvaluationLogicAsString

public String exportEvaluationLogicAsString(E type)
                                     throws ExportException
Deprecated. 
Throws:
ExportException

exportValidityLogicAsString

public String exportValidityLogicAsString(E type)
                                   throws ExportException
Deprecated. 
Throws:
ExportException

exportValidityLogicToNonChoiceMaker

protected String exportValidityLogicToNonChoiceMaker(E 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

exportValidityLogicToClueMaker

public String exportValidityLogicToClueMaker()
                                      throws ExportException
Deprecated. 
The default method for handling any export format named CLUEMAKER_25X.

Parameters:
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
Throws:
ExportException

exportEvaluationLogicToNonChoiceMaker

protected String exportEvaluationLogicToNonChoiceMaker(E 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

public String exportEvaluationLogicToClueMaker()
                                        throws ExportException
Deprecated. 
The default method for handling any export format named CLUEMAKER_25X.

Parameters:
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.
Throws:
ExportException


Copyright © 2011-2012. All Rights Reserved.