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

E17503-02

oracle.jbo.rules
Class JboValidatorContext

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

public class JboValidatorContext
extends JboAbstractMap
implements MetaObjectBase


Field Summary
 
Fields inherited from class oracle.jbo.common.JboAbstractMap
CLASS_INSTANCE, 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_KEY, TYP_DEF_LIST_BINDING, TYP_DEF_METHOD, TYP_DEF_PACKAGE, TYP_DEF_VIEW_ACCESSOR, TYP_DEF_VIEW_LINK, 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_PACKAGE, TYP_PERS_DEF_VIEW_LINK, TYP_PERS_DEF_VIEW_OBJECT, TYP_SORT_CRITERIA, TYP_TRANSACTION, TYP_VALIDATOR_TYPE, TYP_VARIABLE, TYP_VARIABLE_WHERE_CLAUSE, TYP_VIEW_CRITERIA, 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()
           
 java.lang.Object getNewValue()
           
 java.lang.Object getOldValue()
           
 java.lang.Object getSource()
          AttributeList Object that is being validated.
 java.lang.String getSourceFullName()
           
 Row getSourceRow()
           
 int getSourceType()
           
 JboTransAttrValidationManager getTransAttrValidationManager()
           
 JboTransValidationManager getTransValidationManager()
           
 WarningContainer getWarningContainer()
           
protected  java.lang.Object internalGet(java.lang.String key)
          All subclasses should return MAP_NULL_VALUE and check for that to indicate that key was found in the map but had null value instead of letting the super go on to perform more lookups due to null value.
 void setTransAttrValidationManager(JboTransAttrValidationManager mgr)
           
protected  void setTransValidationManager(JboTransValidationManager mgr)
          For internal framework use only
 
Methods inherited from class oracle.jbo.common.JboAbstractMap
clear, containsKey, entrySet, equals, get, hashCode, internalPut, put, setThrowIfPropertyNotFoundOnGet
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, 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.


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

getTransValidationManager

public JboTransValidationManager getTransValidationManager()

getTransAttrValidationManager

public JboTransAttrValidationManager getTransAttrValidationManager()

setTransValidationManager

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

Parameters:
mgr -

setTransAttrValidationManager

public void setTransAttrValidationManager(JboTransAttrValidationManager mgr)

internalGet

protected java.lang.Object internalGet(java.lang.String key)
Description copied from class: JboAbstractMap
All subclasses should return MAP_NULL_VALUE and check for that to indicate that key was found in the map but had null value instead of letting the super go on to perform more lookups due to null value.

Overrides:
internalGet in class JboAbstractMap

addWarning

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

Parameters:
warn - a warning.

getWarningContainer

public WarningContainer getWarningContainer()

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

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.