public class JboListValidator extends JboAbstractValidator
ValidatorConstants.MessageFlavor| Modifier and Type | Field and Description | 
|---|---|
| protected java.lang.Object | mSourceDeprecated.   | 
mValidatingAttrmbInverse, 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 | 
|---|
| JboListValidator()Creates an uninitialized list validator. | 
| JboListValidator(boolean bInverse) | 
| JboListValidator(boolean inverse,
                java.util.Vector vec)Creates a list validator. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | applyDiffContents(DifferDetails dif,
                 DiffResolver resolver) | 
| static java.util.Vector | convertToVector(java.lang.String listVal)Converts a string representation of values to a vector. | 
| DifferDetails | diffContents(DiffMergeable docDef,
            DiffMergeable orgDef,
            DifferDetails difDetails) | 
| protected boolean | doValidateValue(java.lang.Object value,
               java.lang.Object source) | 
| java.lang.String | getDefXMLElementTag() | 
| java.util.Vector | getList()Deprecated. 
 Replaced by  getList(Object). | 
| java.util.Vector | getList(java.lang.Object source) | 
| java.lang.String | getValidatorSubType() | 
| protected void | initialize(JboValidatorContext evObj) | 
| void | initValidatorProperties(java.util.HashMap props) | 
| void | loadXMLContents(DefElement elem) | 
| void | setList(java.util.Vector vec)Sets this validator's list of comparison values. | 
| java.lang.String | toString()Internal: For debugging purposes only. | 
| boolean | validateValue(java.lang.Object value)Deprecated. 
 | 
| 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 | writeChildren(DefWriter jos)Writes the Object's children to the Persistent storage | 
applyValidatorPersonalization, clone, closeObject, createException, getDefXMLNameSpace, getErrorMsgId, getErrorReportAttrDef, getFullName, getImageLoc, getMessageFlavor, getName, getOrigObject, getTriggeringAttributeDefs, getValidatingAttributeName, getValidatorType, getValueToValidate, getXMLElementTag, isForPersonalization, isReadOnly, raiseException, resolve, setForPersonalization, setInitialized, setMessageFlavor, setName, setNewValue, setOrigObject, setValidatingAttribute, setValidatingAttribute, validate, validateMany, writeContents, writeObjectapplyDiffChildren, applyValidatorPersonalization, convertToJava, copyErrorMsgInfo, createAttributeException, createExprValueSupplier, createRowException, diffChildren, diffObjects, ensureDifferDetails, ensureVariableManager, getDescription, getErrorMessageClass, getErrorMsgExpressions, getErrorMsgIds, getExprValueSupplierType, getInverse, getMessageBundleClass, getOnCondition, getOwner, getResourceBundleDef, getResourceBundleId, getSeverity, getTriggeringAttributeNames, getVariableManager, hasErrorMsg, hasValidationCondition, hasVariables, initErrMsgParms, initTriggeringAttributeDefs, isDirty, isMovedToAttrLevel, isNew, isTransactionLevel, isTransactionLevel, isValidatable, loadVariables, parseSeverityStr, prepareException, raiseException, readStringArrayList, readTransientExpression, readTransientExpression, readUserObject, readUserObject, readUserObjectTrim, readUserObjectTrim, readUserStringElementsMap, setDefaultDescription, setDescription, setDirty, setErrorMessageClass, setErrorMsgExpressions, setErrorMsgId, setErrorMsgIds, setExprValueSupplierType, setInverse, setNew, setOnCondition, setResourceBundleDef, setResourceBundleId, setSeverity, setTransactionLevel, setTriggeringAttributeNames, setValidatingAttributeName, setValidatorSubTypeallocatePropertyMap, 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, waitgetTriggeringAttributeNames, isTransactionLevelgetDescription, setDescriptionisDirty, isNew, setDirty, setNew@Deprecated protected java.lang.Object mSource
validateValueWithContext(JboValidatorContext, Object).public JboListValidator()
 Invoke setList() to provide a list of comparison values.
public JboListValidator(boolean bInverse)
public JboListValidator(boolean inverse,
                java.util.Vector vec)
inverse - if true the logic of this validator's
 test is inverted.vec - a list of comparison values.public java.lang.String getValidatorSubType()
getValidatorSubType in class AbstractValidatorprotected void initialize(JboValidatorContext evObj)
initialize in class JboAbstractValidatorpublic boolean validateValueWithContext(JboValidatorContext evObj, java.lang.Object value)
JboAbstractValidatorvalidateValueWithContext in class JboAbstractValidator@Deprecated public boolean validateValue(java.lang.Object value)
validateValueWithContext(JboValidatorContext, Object).
 The list of test values is set by setList.
 
 This method is called by AbstractValidator#vetoableChange().
validateValue in class JboAbstractValidatorvalue - the object to be validated.true if value is in this validator's
 list of values.protected boolean doValidateValue(java.lang.Object value,
                      java.lang.Object source)
public void setList(java.util.Vector vec)
vec - a list of values.public java.util.Vector getList(java.lang.Object source)
@Deprecated public java.util.Vector getList()
getList(Object).public java.lang.String toString()
toString in class java.lang.Objectpublic static java.util.Vector convertToVector(java.lang.String listVal)
listVal - a string containing values separated by ":" characters.public void initValidatorProperties(java.util.HashMap props)
initValidatorProperties in interface JboValidatorHintsinitValidatorProperties in class AbstractValidatorpublic void loadXMLContents(DefElement elem)
loadXMLContents in class JboAbstractValidatorpublic java.lang.String getDefXMLElementTag()
getDefXMLElementTag in interface PersistentDefinitiongetDefXMLElementTag in class AbstractValidatorpublic void writeChildren(DefWriter jos)
PersistentDefinitionwriteChildren in interface PersistentDefinitionwriteChildren in class AbstractValidatorjos - 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