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

E10653-04

oracle.jbo.rules
Class JboCustomValidator

java.lang.Object
  extended by oracle.jbo.rules.AbstractValidator
      extended by oracle.jbo.rules.JboCustomValidator
All Implemented Interfaces:
JboValidatorInterface, ValidatorConstants, VariableManagerOwner, VariableManagerOwnerBase

public class JboCustomValidator
extends AbstractValidator
implements JboValidatorInterface


Field Summary
protected  java.lang.String mBeanClass
           
protected  java.lang.String mName
           
protected  JboValidatorInterface mVal
           
 
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, BETWEEN, 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_TransientExpression, 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
 
Constructor Summary
JboCustomValidator(java.lang.String name, java.lang.String beanClass, JboValidatorInterface val)
           
 
Method Summary
 java.lang.String getBeanClass()
           
 JboValidatorInterface getBeanInstance()
           
 java.lang.String getDescription()
          Gets the textul description of this validator.
 java.lang.String getName()
          Returns the name of this Variable Manager Owner.
 void setBeanClass(java.lang.String beanClass)
           
 void setBeanInstance(JboValidatorInterface val)
           
 void setDescription(java.lang.String description)
          Sets the textul description of this validator using a specified string.
 void setName(java.lang.String name)
           
 void validate(JboValidatorContext ctx)
          Tests the validity of the object/value as described in the validator context.
 boolean validateValue(java.lang.Object val)
           
 
Methods inherited from class oracle.jbo.rules.AbstractValidator
applyValidatorPersonalization, clone, convertToJava, copyErrorMsgInfo, createException, createExprValueSupplier, ensureVariableManager, getErrorMessageClass, getErrorMsgExpressions, getErrorMsgId, getFullName, getInverse, getMessageBundleClass, getOnCondition, getOwner, getResourceBundleDef, getResourceBundleId, getSeverity, getTriggeringAttributeDefs, getTriggeringAttributeNames, getValidatingAttributeName, getValidatorSubType, getVariableManager, hasErrorMsg, hasValidationCondition, hasVariables, initErrMsgParms, initTriggeringAttributeDefs, initValidatorProperties, isDirty, isMovedToAttrLevel, isNew, isTransactionLevel, isTransactionLevel, isValidatable, loadVariables, loadXMLContents, parseSeverityStr, prepareException, raiseException, raiseException, readStringArrayList, readUserObject, readUserObject, readUserObjectTrim, readUserObjectTrim, readUserStringElementsMap, resolve, setDefaultDescription, setDirty, setErrorMessageClass, setErrorMsgExpressions, setErrorMsgId, setErrorMsgIds, setInverse, setNew, setOnCondition, setResourceBundleDef, setResourceBundleId, setSeverity, setTransactionLevel, setTriggeringAttributeNames, setValidatingAttributeName, writeChildren, writeContents
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mName

protected java.lang.String mName

mBeanClass

protected java.lang.String mBeanClass

mVal

protected JboValidatorInterface mVal
Constructor Detail

JboCustomValidator

public JboCustomValidator(java.lang.String name,
                          java.lang.String beanClass,
                          JboValidatorInterface val)
Method Detail

setName

public void setName(java.lang.String name)

getName

public java.lang.String getName()
Description copied from interface: VariableManagerOwner
Returns the name of this Variable Manager Owner.

Specified by:
getName in interface VariableManagerOwner
Overrides:
getName in class AbstractValidator
Returns:
the name.

setBeanClass

public void setBeanClass(java.lang.String beanClass)

getBeanClass

public java.lang.String getBeanClass()

setBeanInstance

public void setBeanInstance(JboValidatorInterface val)

getBeanInstance

public JboValidatorInterface getBeanInstance()

validate

public void validate(JboValidatorContext ctx)
Description copied from interface: JboValidatorInterface
Tests the validity of the object/value as described in the validator context.

Specified by:
validate in interface JboValidatorInterface
Parameters:
ctx - the validator context

validateValue

public boolean validateValue(java.lang.Object val)

getDescription

public java.lang.String getDescription()
Description copied from class: AbstractValidator
Gets the textul description of this validator.

Specified by:
getDescription in interface JboValidatorInterface
Overrides:
getDescription in class AbstractValidator
Returns:
a documentation string.

setDescription

public void setDescription(java.lang.String description)
Description copied from class: AbstractValidator
Sets the textul description of this validator using a specified string.

Specified by:
setDescription in interface JboValidatorInterface
Overrides:
setDescription in class AbstractValidator
Parameters:
description - a documentation string.

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

E10653-04

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