Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.0.0)

E10653-01

oracle.jbo.rules
Class JboRequiredValidator

java.lang.Object
  extended by oracle.jbo.rules.AbstractValidator
      extended by oracle.jbo.rules.JboAbstractValidator
          extended by oracle.jbo.rules.JboRequiredValidator
All Implemented Interfaces:
DefPersistable, PersistentDefinition, JboValidatorHints, JboValidatorInterface, ValidatorConstants, VariableManagerOwner, VariableManagerOwnerBase

public class JboRequiredValidator
extends JboAbstractValidator

A validator that tests whether the value entered is null or not null

Since:
Jdeveloper 3.0

Field Summary
 
Fields inherited from class oracle.jbo.rules.JboAbstractValidator
mValidatingAttr
 
Fields inherited from class oracle.jbo.rules.AbstractValidator
mbInverse, mDescription, mErrorMessageClass, mMsgExpr, mMsgId, mMsgIds, mResourceBundleId, mTriggeringAttributeNames, mTriggeringAttributes, mValidatingAttrName
 
Fields inherited from interface oracle.jbo.rules.ValidatorConstants
ATTR, ATTR_STR, EO, EO_STR, EQUALTO, EXPR, EXPR_STR, GREATERTHAN, GREATERTHANEQUALTO, JBO, JBO_STR, LESSTHAN, LESSTHANEQUALTO, LITERAL, LITERAL_STR, MANDATORY_STR, mCompOperTypeVals, mRhsTypeVals, mSeverityVals, PNAME_CompareLength, PNAME_CompareType, PNAME_CompareValue, PNAME_DataType, PNAME_ErrorMessageExpressions, PNAME_ErrorMessageId, PNAME_ErrorMessageIds, PNAME_Exposed, PNAME_ForPersonalization, PNAME_Inverse, PNAME_Name, PNAME_OnAttribute, PNAME_OnAttributes, PNAME_OnCondition, PNAME_OperandType, PNAME_Severity, PNAME_Subtype, PNAME_TransactionLevel, PNAME_ValidationBeanClass, PNAME_ValName, PNAME_xmlns, PRECISION_SCALE_STR, SEVERITY_ERROR, SEVERITY_RECOVERABLE_ERROR, SEVERITY_VETOABLE_WARNING, SEVERITY_WARNING, SQL, SQL_STR, VALIDATION_XMLNS, VALIDATOR_MSG_ID_PREFIX, VO, VO_STR, VO_USAGE, VO_USAGE_STR
 
Fields inherited from interface oracle.jbo.mom.xml.DefPersistable
XML_STATEMENT
 
Constructor Summary
JboRequiredValidator()
          Creates a required validator.
JboRequiredValidator(boolean inverse)
          Creates a required validator.
 
Method Summary
 java.lang.String getDefXMLElementTag()
           
 boolean validateValue(java.lang.Object value)
          Validate an object by checking whether its value is equal to Null This method is called by AbstractValidator#vetoableChange().
 
Methods inherited from class oracle.jbo.rules.JboAbstractValidator
applyValidatorPersonalization, clone, closeObject, getDefXMLNameSpace, getErrorMsgId, getFullName, getImageLoc, getName, getTriggeringAttributeDefs, getValidatingAttributeName, getValueToValidate, getXMLElementTag, initialize, isDirty, isForPersonalization, isNew, isReadOnly, loadXMLContents, raiseException, resolve, setDirty, setForPersonalization, setInitialized, setName, setNew, setNewValue, setValidatingAttribute, setValidatingAttribute, validate, validateMany, validateValueWithContext, writeContents, writeObject
 
Methods inherited from class oracle.jbo.rules.AbstractValidator
applyValidatorPersonalization, convertToJava, createException, createExprValueSupplier, ensureVariableManager, getDescription, getErrorMessageClass, getErrorMsgExpressions, getInverse, getMessageBundleClass, getOnCondition, getOwner, getResourceBundleDef, getResourceBundleId, getSeverity, getTriggeringAttributeNames, getValidatorSubType, getVariableManager, hasValidationCondition, hasVariables, initErrMsgParms, initTriggeringAttributeDefs, initValidatorProperties, isMovedToAttrLevel, isTransactionLevel, isTransactionLevel, isValidatable, loadVariables, parseSeverityStr, prepareException, raiseException, readStringArrayList, readUserObject, readUserObjectTrim, readUserStringElementsMap, setDefaultDescription, setDescription, setErrorMessageClass, setErrorMsgExpressions, setErrorMsgId, setErrorMsgIds, setInverse, setOnCondition, setResourceBundleDef, setResourceBundleId, setSeverity, setTransactionLevel, setTriggeringAttributeNames, setValidatingAttributeName, writeChildren
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface oracle.jbo.rules.JboValidatorHints
getTriggeringAttributeNames, initValidatorProperties, isTransactionLevel
 
Methods inherited from interface oracle.jbo.rules.JboValidatorInterface
getDescription, setDescription
 
Methods inherited from interface oracle.jbo.mom.xml.PersistentDefinition
writeChildren
 

Constructor Detail

JboRequiredValidator

public JboRequiredValidator()
Creates a required validator.


JboRequiredValidator

public JboRequiredValidator(boolean inverse)
Creates a required validator.

Method Detail

validateValue

public boolean validateValue(java.lang.Object value)
Validate an object by checking whether its value is equal to Null This method is called by AbstractValidator#vetoableChange().

Specified by:
validateValue in class JboAbstractValidator
Parameters:
value - the object to be validated.
Returns:
true if the relation holds, or false if the relation does not hold or

getDefXMLElementTag

public java.lang.String getDefXMLElementTag()
Specified by:
getDefXMLElementTag in interface PersistentDefinition
Specified by:
getDefXMLElementTag in class JboAbstractValidator

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.0.0)

E10653-01

Copyright © 1997, 2008, Oracle. All rights reserved.