Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.0.0)

E17483-01

oracle.jbo.rules
Class JboCustomValidator

java.lang.Object
  extended by oracle.jbo.common.NamedObjectImpl
      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 class oracle.jbo.common.NamedObjectImpl
mFullName, mObjName, mParent, mProperties, RES_ID_SUFFIX, RESID_SUFFIX
 
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, 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_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, 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()
          Get the name of this object.
 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)
          Name this object.
 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, getErrorMsgIds, getExprValueSupplierType, 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, readTransientExpression, readUserObject, readUserObject, readUserObjectTrim, readUserObjectTrim, readUserStringElementsMap, resolve, setDefaultDescription, setDirty, setErrorMessageClass, setErrorMsgExpressions, setErrorMsgId, setErrorMsgIds, setExprValueSupplierType, setInverse, setNew, setOnCondition, setResourceBundleDef, setResourceBundleId, setSeverity, setTransactionLevel, setTriggeringAttributeNames, setValidatingAttributeName, writeChildren, writeContents
 
Methods inherited from class oracle.jbo.common.NamedObjectImpl
allocatePropertyMap, getAllProperties, getParent, getProperties, getPropertiesAsStrings, getPropertiesMap, getProperty, getProperty, getPropertyExpressionsMap, getPropertyMap, getResourcesFromBundle, getStringFromMessageBundle, isPropertyExpression, mergePropertyMap, refreshProperty, removeProperty, removeProperty, requiresNamePrefixedResId, resolveObjectProperty, resolvePropertyRaw, setFullName, setParent, setPropertiesMap, setPropertiesMap2, setProperty, setProperty, setPropertyExpression, setPropertyMap
 
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)
Description copied from class: NamedObjectImpl
Name this object.

Overrides:
setName in class NamedObjectImpl
Parameters:
name - the name to be given to this object.

getName

public java.lang.String getName()
Description copied from class: NamedObjectImpl
Get the name of this object.

Specified by:
getName in interface VariableManagerOwner
Overrides:
getName in class AbstractValidator
Returns:
the name given to this object.

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 2 (11.1.2.0.0)

E17483-01

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