public class JboMethodValidator extends JboAbstractValidator implements JboTransValidatorInterface
 The validation method must be public,
 take a single Object parameter and return Boolean.
ValidatorConstants.MessageFlavormValidatingAttrmbInverse, mDescription, mErrorMessageClass, mMsgExpr, mMsgId, mMsgIds, mResourceBundleId, mTriggeringAttributeNames, mTriggeringAttributes, mValidatingAttrNamemFullName, mObjName, mParent, mProperties, RES_ID_SUFFIX, RESID_SUFFIXATTR, ATTR_STR, BETWEEN, EO, EO_STR, EQUALTO, EXPR, EXPR_STR, GREATERTHAN, GREATERTHANEQUALTO, JBO, JBO_STR, LESSTHAN, LESSTHANEQUALTO, LITERAL, LITERAL_STR, MANDATORY_STR, mCompOperTypeVals, mRhsTypeVals, mSeverityVals, NOTEQUALTO, PNAME_CompareLength, PNAME_CompareType, PNAME_CompareValue, PNAME_DataType, PNAME_Description, PNAME_ErrorMessageExpressions, PNAME_ErrorMessageId, PNAME_ErrorMessageIds, PNAME_Exposed, PNAME_ExprValueSupplier, PNAME_ForPersonalization, PNAME_Inverse, PNAME_MessageFlavor, PNAME_Name, PNAME_OnAttribute, PNAME_OnAttributes, PNAME_OnCondition, PNAME_OperandType, PNAME_Severity, PNAME_Subtype, PNAME_TransactionLevel, PNAME_TransientExpression, PNAME_Trigger, PNAME_ValidationBeanClass, PNAME_ValName, PNAME_xmlns, PRECISION_SCALE_STR, SEVERITY_ERROR, SEVERITY_RECOVERABLE_ERROR_INDEX, SEVERITY_VETOABLE_WARNING, SEVERITY_WARNING, SQL, SQL_STR, VALIDATION_XMLNS, VALIDATOR_MSG_ID_PREFIX, VO, VO_STR, VO_USAGE, VO_USAGE_STRXML_STATEMENT| Constructor and Description | 
|---|
| JboMethodValidator()Creates a validator without assigning its validation method. | 
| JboMethodValidator(java.lang.String methodName,
                  java.lang.Class entityClz,
                  java.lang.Class clz)Creates a validator given the name of the validation method. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | applyDiffContents(DifferDetails dif,
                 DiffResolver resolver) | 
| DifferDetails | diffContents(DiffMergeable docDef,
            DiffMergeable orgDef,
            DifferDetails difDetails) | 
| java.lang.String | getDefXMLElementTag() | 
| java.lang.String | getErrorMsgId() | 
| java.lang.reflect.Method | getMethod()Gets the method invoked by this validator. | 
| java.lang.String | getMethodName()Gets the name of the method invoked by this validator. | 
| void | initValidatorProperties(java.util.HashMap props) | 
| void | loadXMLContents(DefElement elem) | 
| protected void | prepareException(ValidationException valEx,
                JboValidatorContext evObj,
                int severity) | 
| void | raiseException(java.lang.Exception e,
              JboValidatorContext evObj,
              java.lang.String msgId,
              int severity) | 
| void | setMethodName(java.lang.String mthName)Sets the name of the method invoked by this validator. | 
| void | setObjectMethod(java.lang.Class entityClz,
               java.lang.Class attrClaz)This implementation finds the given method in the given
 object and stores the Method reference for invocation by
 validateValue. | 
| void | setTransactionLevel(boolean bTransactionLevel) | 
| java.lang.String | toString()Internal: For debugging purposes only. | 
| void | validateMany(java.util.ArrayList valCtxs) | 
| boolean | validateValue(java.lang.Object value)Validates a value. | 
| boolean | validateValueWithContext(JboValidatorContext evObj,
                        java.lang.Object value)Called internally by the framework with validation OnCondition is true or
 there is no validation OnCondition. | 
| void | writeContents(DefWriter jos)Objects should write their persistence output in this method | 
applyValidatorPersonalization, clone, closeObject, createException, getDefXMLNameSpace, getErrorReportAttrDef, getFullName, getImageLoc, getMessageFlavor, getName, getOrigObject, getTriggeringAttributeDefs, getValidatingAttributeName, getValidatorType, getValueToValidate, getXMLElementTag, initialize, isForPersonalization, isReadOnly, resolve, setForPersonalization, setInitialized, setMessageFlavor, setName, setNewValue, setOrigObject, setValidatingAttribute, setValidatingAttribute, validate, writeObjectapplyDiffChildren, applyValidatorPersonalization, convertToJava, copyErrorMsgInfo, createAttributeException, createExprValueSupplier, createRowException, diffChildren, diffObjects, ensureDifferDetails, ensureVariableManager, getDescription, getErrorMessageClass, getErrorMsgExpressions, getErrorMsgIds, getExprValueSupplierType, getInverse, getMessageBundleClass, getOnCondition, getOwner, getResourceBundleDef, getResourceBundleId, getSeverity, getTriggeringAttributeNames, getValidatorSubType, getVariableManager, hasErrorMsg, hasValidationCondition, hasVariables, initErrMsgParms, initTriggeringAttributeDefs, isDirty, isMovedToAttrLevel, isNew, isTransactionLevel, isTransactionLevel, isValidatable, loadVariables, parseSeverityStr, raiseException, readStringArrayList, readTransientExpression, readTransientExpression, readUserObject, readUserObject, readUserObjectTrim, readUserObjectTrim, readUserStringElementsMap, setDefaultDescription, setDescription, setDirty, setErrorMessageClass, setErrorMsgExpressions, setErrorMsgId, setErrorMsgIds, setExprValueSupplierType, setInverse, setNew, setOnCondition, setResourceBundleDef, setResourceBundleId, setSeverity, setTriggeringAttributeNames, setValidatingAttributeName, setValidatorSubType, writeChildrenallocatePropertyMap, getAllProperties, getParent, getProperties, getPropertiesAsStrings, getPropertiesMap, getProperty, getProperty, getPropertyExpressionsMap, getPropertyMap, getRawPropertyValue, getResourcesFromBundle, getStringFromMessageBundle, isPropertyExpression, mergePropertyMap, refreshProperty, removeProperty, removeProperty, requiresNamePrefixedResId, resolveObjectProperty, resolvePropertyRaw, setFullName, setParent, setPropertiesMap, setPropertiesMap2, setProperty, setProperty, setPropertyExpression, setPropertyMapequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDescription, setDescription, validategetTriggeringAttributeNames, isTransactionLevelisDirty, isNew, setDirty, setNewwriteChildrenpublic JboMethodValidator()
public JboMethodValidator(java.lang.String methodName,
                  java.lang.Class entityClz,
                  java.lang.Class clz)
methodName - the name of a Java method.  The method must be public,
 take a single Object parameter and return Boolean.public void setObjectMethod(java.lang.Class entityClz,
                   java.lang.Class attrClaz)
protected void prepareException(ValidationException valEx, JboValidatorContext evObj, int severity)
prepareException in class AbstractValidatorpublic java.lang.String getErrorMsgId()
getErrorMsgId in class JboAbstractValidatorpublic void validateMany(java.util.ArrayList valCtxs)
validateMany in interface JboTransValidatorInterfacevalidateMany in class JboAbstractValidatorpublic boolean validateValueWithContext(JboValidatorContext evObj, java.lang.Object value)
JboAbstractValidatorvalidateValueWithContext in class JboAbstractValidatorpublic void raiseException(java.lang.Exception e,
                  JboValidatorContext evObj,
                  java.lang.String msgId,
                  int severity)
raiseException in class JboAbstractValidatorpublic boolean validateValue(java.lang.Object value)
JboAbstractValidatorSubclasses must implement this method.
validateValue in class JboAbstractValidatorvalue - the object to be validated.true if the object is valid.public void setMethodName(java.lang.String mthName)
mthName - the name of a Java method.  The method must be public,
 take a single Object parameter and return Boolean.public java.lang.String getMethodName()
public java.lang.reflect.Method getMethod()
method object, a description of a Java method.public void setTransactionLevel(boolean bTransactionLevel)
setTransactionLevel in class AbstractValidatorpublic java.lang.String toString()
toString in class java.lang.Objectpublic void initValidatorProperties(java.util.HashMap props)
initValidatorProperties in interface JboValidatorHintsinitValidatorProperties in class AbstractValidatorpublic java.lang.String getDefXMLElementTag()
getDefXMLElementTag in interface PersistentDefinitiongetDefXMLElementTag in class AbstractValidatorpublic void loadXMLContents(DefElement elem)
loadXMLContents in class JboAbstractValidatorpublic void writeContents(DefWriter jos)
PersistentDefinitionwriteContents in interface PersistentDefinitionwriteContents in class JboAbstractValidatorjos - the Output storage for persistencepublic DifferDetails diffContents(DiffMergeable docDef, DiffMergeable orgDef, DifferDetails difDetails)
diffContents in interface DiffMergeablediffContents in class JboAbstractValidatorpublic void applyDiffContents(DifferDetails dif, DiffResolver resolver)
applyDiffContents in interface DiffMergeableapplyDiffContents in class AbstractValidator