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

E10653-08

oracle.jbo.rules
Class JboValidatorContext

java.lang.Object
  extended by java.util.AbstractMap
      extended by oracle.jbo.common.JboAbstractMap
          extended by oracle.jbo.rules.JboValidatorContext
All Implemented Interfaces:
java.util.Map, MetaObjectBase

public class JboValidatorContext
extends JboAbstractMap
implements MetaObjectBase

A "PropertyChange" event gets delivered whenever a bean changes a "bound" or "constrained" property. A JboValidatorContext object is sent as an argument to the PropertyChangeListener and VetoableChangeListener methods.

Normally JboValidatorContexts are accompanied by the name and the old and new value of the changed property. If the new value is a builtin type (such as int or boolean) it must be wrapped as the corresponding java.lang.* Object type (such as Integer or Boolean).

Null values may be provided for the old and the new values if their true values are not known.

An event source may send a null object as the name to indicate that an arbitrary set of if its properties have changed. In this case the old and new values should also be null.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Field Summary
 
Fields inherited from class oracle.jbo.common.JboAbstractMap
MAP_NULL_VALUE
 
Fields inherited from interface oracle.jbo.common.MetaObjectBase
TYP_APP_MODULE, TYP_ATTRIBUTE, TYP_ATTRIBUTE_LIST_WITH_DEF, TYP_COMPONENT_OBJECT, TYP_DATA_CONTROL, TYP_DEF_ANY, TYP_DEF_APP_MODULE, TYP_DEF_ASSOC_END, TYP_DEF_ATTRIBUTE, TYP_DEF_COMPONENT_OBJECT, TYP_DEF_DOMAIN, TYP_DEF_ENTITY_ASSOC, TYP_DEF_ENTITY_OBJECT, TYP_DEF_EXPRWHITELIST, TYP_DEF_KEY, TYP_DEF_LIST_BINDING, TYP_DEF_METHOD, TYP_DEF_OPERATION, TYP_DEF_PACKAGE, TYP_DEF_VIEW_ACCESSOR, TYP_DEF_VIEW_ANNOT, TYP_DEF_VIEW_LINK, TYP_DEF_VIEW_LINK_END, TYP_DEF_VIEW_OBJECT, TYP_DOMAIN, TYP_ENTITY_ASSOC, TYP_ENTITY_OBJECT, TYP_ENTITY_ROW, TYP_ENTITY_ROW_SET, TYP_ENTITY_ROW_SET_ITERATOR, TYP_ENTITY_USAGE, TYP_PACKAGE, TYP_PERS_DEF_APP_MODULE, TYP_PERS_DEF_ATTRIBUTE, TYP_PERS_DEF_COMPONENT_OBJECT, TYP_PERS_DEF_DOMAIN, TYP_PERS_DEF_ENTITY_ASSOC, TYP_PERS_DEF_ENTITY_OBJECT, TYP_PERS_DEF_OFFSET, TYP_PERS_DEF_OPERATION, TYP_PERS_DEF_PACKAGE, TYP_PERS_DEF_VARIABLE, TYP_PERS_DEF_VIEW_LINK, TYP_PERS_DEF_VIEW_OBJECT, TYP_SERVICE_VIEW_USAGE, TYP_SORT_CRITERIA, TYP_TRANSACTION, TYP_TRIGGER_TYPE, TYP_VALIDATOR_TYPE, TYP_VARIABLE, TYP_VARIABLE_WHERE_CLAUSE, TYP_VIEW_CRITERIA, TYP_VIEW_CRITERIA_ITEM, TYP_VIEW_CRITERIA_ROW, TYP_VIEW_LINK, TYP_VIEW_OBJECT, TYP_VIEW_ROW, TYP_VIEW_ROW_SET, TYP_VIEW_ROW_SET_ITERATOR
 
Constructor Summary
JboValidatorContext(int sourceType, java.lang.Object source, java.lang.String sourceFullName, AttributeDef attribute, java.lang.Object oldValue, java.lang.Object newValue)
          Deprecated. since 11.1.1.0 use a subclass to implement getWarningContainer and evaluateExpression methods.
 
Method Summary
 void addWarning(JboWarning warn)
          Adds a warning to the Warning Container.
 AttributeDef getAttributeDef()
           
 Row getAttributeList()
           
 java.lang.String getAttributeName()
           
protected  java.util.List<AttrValException> getCachedExceptions()
           
protected  java.lang.String getErrorMsgId()
           
protected  ExprValueSupplier getExprValueSupplierForExpression()
           
protected  java.lang.String getExprValueSupplierType()
           
 java.lang.Object getNewValue()
           
 java.lang.Object getOldValue()
           
protected  JboValidatorContext getRootContext()
           
 java.lang.Object getSource()
          AttributeList Object that is being validated.
 java.lang.String getSourceFullName()
           
 Row getSourceRow()
           
 int getSourceType()
           
 JboTransAttrValidationManager getTransAttrValidationManager()
           
 JboTransValidationManager getTransValidationManager()
           
 AbstractValidator getValidator()
           
 WarningContainer getWarningContainer()
           
protected  void initializeForReuse()
           
protected  java.lang.Object internalGet(java.lang.String key)
           
protected  void internalPut(java.lang.String key, java.lang.Object value)
          The expensive version of internalPut, it uses introspection
protected  void setErrorMsgId(java.lang.String id)
           
 void setTransAttrValidationManager(JboTransAttrValidationManager mgr)
           
protected  void setTransValidationManager(JboTransValidationManager mgr)
          For internal framework use only
 
Methods inherited from class oracle.jbo.common.JboAbstractMap
entrySet, equals, get, hashCode, put, setThrowIfPropertyNotFoundOnGet
 
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, isEmpty, keySet, putAll, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JboValidatorContext

public JboValidatorContext(int sourceType,
                           java.lang.Object source,
                           java.lang.String sourceFullName,
                           AttributeDef attribute,
                           java.lang.Object oldValue,
                           java.lang.Object newValue)
Deprecated. since 11.1.1.0 use a subclass to implement getWarningContainer and evaluateExpression methods.

Parameters:
source - The bean that fired the event.
attribute - The property that was changed.
oldValue - The old value of the property.
newValue - The new value of the property.
Method Detail

getSource

public java.lang.Object getSource()
AttributeList Object that is being validated.


getValidator

public AbstractValidator getValidator()

getAttributeList

public Row getAttributeList()

getSourceRow

public Row getSourceRow()

getAttributeName

public java.lang.String getAttributeName()
Returns:
The programmatic name of the property that was changed. May be null if multiple properties have changed.

getAttributeDef

public AttributeDef getAttributeDef()

getNewValue

public java.lang.Object getNewValue()
Returns:
The new value for the property, expressed as an Object. May be null if multiple properties have changed.

getOldValue

public java.lang.Object getOldValue()
Returns:
The old value for the property, expressed as an Object. May be null if multiple properties have changed.

getSourceFullName

public java.lang.String getSourceFullName()

getSourceType

public int getSourceType()

getExprValueSupplierType

protected java.lang.String getExprValueSupplierType()

getTransValidationManager

public JboTransValidationManager getTransValidationManager()

getTransAttrValidationManager

public JboTransAttrValidationManager getTransAttrValidationManager()

setTransValidationManager

protected void setTransValidationManager(JboTransValidationManager mgr)
For internal framework use only

Parameters:
mgr -
For internal use only. Application developers should not use this

setTransAttrValidationManager

public void setTransAttrValidationManager(JboTransAttrValidationManager mgr)

getWarningContainer

public WarningContainer getWarningContainer()

getExprValueSupplierForExpression

protected ExprValueSupplier getExprValueSupplierForExpression()

internalGet

protected java.lang.Object internalGet(java.lang.String key)
Overrides:
internalGet in class JboAbstractMap

internalPut

protected void internalPut(java.lang.String key,
                           java.lang.Object value)
The expensive version of internalPut, it uses introspection

Overrides:
internalPut in class JboAbstractMap

addWarning

public void addWarning(JboWarning warn)
Adds a warning to the Warning Container.

Parameters:
warn - a warning.

initializeForReuse

protected void initializeForReuse()

setErrorMsgId

protected void setErrorMsgId(java.lang.String id)

getErrorMsgId

protected java.lang.String getErrorMsgId()

getCachedExceptions

protected java.util.List<AttrValException> getCachedExceptions()

getRootContext

protected JboValidatorContext getRootContext()

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

E10653-08

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