public class JboNonNullValidator extends JboAbstractValidator
This validator is invoked by an Entity Objects's validate() method to confirm that its mandatory attributes are non-null. If any attribute is null, AttrValException is thrown. The framework does not perform this validation when an attribute value is changed, but only when its Enitity Object is validated.
Entity, 
EntityDefImplValidatorConstants.MessageFlavor| Modifier and Type | Field and Description | 
|---|---|
| protected AttributeDef[] | mandatoryAttrs | 
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 | 
|---|
| JboNonNullValidator() | 
| JboNonNullValidator(java.util.ArrayList vec)Creates a validator from a list of attribute indices. | 
| JboNonNullValidator(java.util.ArrayList vec,
                   boolean isAll) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | applyDiffContents(DifferDetails dif,
                 DiffResolver resolver) | 
| DifferDetails | diffContents(DiffMergeable docDef,
            DiffMergeable orgDef,
            DifferDetails difDetails) | 
| AttributeDef[] | getAttributeDefs() | 
| java.util.ArrayList | getAttributeNames() | 
| java.lang.String | getDefXMLElementTag() | 
| protected void | initialize(JboValidatorContext evObj) | 
| void | initValidatorProperties(java.util.HashMap props) | 
| boolean | isAll() | 
| void | loadXMLContents(DefElement elem) | 
| void | setAttributeNames(java.util.ArrayList attrNames) | 
| void | setIsAll(boolean b) | 
| protected void | throwAllNullError(JboValidatorContext evObj) | 
| java.lang.String | toString() | 
| void | validate(JboValidatorContext evObj)Validates the Entity Object's mandatory attributes. | 
| boolean | validateValue(java.lang.Object value)Validates a value. | 
| void | writeContents(DefWriter jos)Objects should write their persistence output in this method | 
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, validateMany, validateValueWithContext, 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, 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, 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, waitgetTriggeringAttributeNames, isTransactionLevelgetDescription, setDescriptionisDirty, isNew, setDirty, setNewwriteChildrenprotected transient AttributeDef[] mandatoryAttrs
public JboNonNullValidator()
public JboNonNullValidator(java.util.ArrayList vec)
vec - a list of indices for attributes to be considered manditory.public JboNonNullValidator(java.util.ArrayList vec,
                   boolean isAll)
protected void initialize(JboValidatorContext evObj)
initialize in class JboAbstractValidatorpublic boolean isAll()
public void setIsAll(boolean b)
public AttributeDef[] getAttributeDefs()
public java.util.ArrayList getAttributeNames()
public void setAttributeNames(java.util.ArrayList attrNames)
public 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.protected void throwAllNullError(JboValidatorContext evObj)
public void validate(JboValidatorContext evObj)
validate in interface JboValidatorInterfacevalidate in class JboAbstractValidatorevObj - an event indicating the attributes to be validatated.public java.lang.String toString()
toString in class java.lang.Objectpublic 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 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