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

java.lang.Object
  extended by net.sf.adatagenerator.pred.AbstractPredicate<E,R>
      extended by net.sf.adatagenerator.pred.ReflectionPredicate<F,E,R>
Type Parameters:
F - the type of field that this predicate evaluates
E - an enumeration of the possible export types that this instance conditionally supports
R - the type of record from which this predicate gets up a field value
All Implemented Interfaces:
ExportablePredicate<E,R>, Predicate<R>
Direct Known Subclasses:
StringPredicate

Deprecated. Moved to the com.choicemaker.correlation package

public abstract class ReflectionPredicate<F,E extends Enum<E>,R>
extends AbstractPredicate<E,R>

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.  
 String mFld
          Deprecated.  
 String qFld
          Deprecated.  
 String rFld
          Deprecated.  
 
Fields inherited from interface net.sf.adatagenerator.pred.ExportablePredicate
m, q, r
 
Constructor Summary
ReflectionPredicate(String predicateName, Method fieldAccessor, Class<F> fieldType)
          Deprecated.  
 
Method Summary
abstract  boolean evaluateFieldValues(F qVal, F mVal)
          Deprecated.  
 boolean evaluateRecords(R q, R m)
          Deprecated.  
protected  Method getFieldAccessor()
          Deprecated.  
 String getFieldNameStem()
          Deprecated.  
 Class<F> getFieldType()
          Deprecated.  
abstract  boolean isFieldValidForEvaluation(F f)
          Deprecated.  
 boolean isRecordValidForEvaluation(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
 
Methods inherited from interface net.sf.adatagenerator.pred.ExportablePredicate
exportEvaluationLogicAsString, exportValidityLogicAsString, getSupportedExportTypes
 

Field Detail

logger

protected static Logger logger
Deprecated. 

qFld

public final String qFld
Deprecated. 

mFld

public final String mFld
Deprecated. 

rFld

public final String rFld
Deprecated. 
Constructor Detail

ReflectionPredicate

public ReflectionPredicate(String predicateName,
                           Method fieldAccessor,
                           Class<F> fieldType)
Deprecated. 
Method Detail

getFieldAccessor

protected Method getFieldAccessor()
Deprecated. 

getFieldType

public Class<F> getFieldType()
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

isFieldValidForEvaluation

public abstract boolean isFieldValidForEvaluation(F f)
Deprecated. 

evaluateFieldValues

public abstract boolean evaluateFieldValues(F qVal,
                                            F mVal)
Deprecated. 


Copyright © 2011-2012. All Rights Reserved.