|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1) E10653-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractMap oracle.jbo.common.JboAbstractMap oracle.jbo.rules.JboValidatorContext
public class JboValidatorContext
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 |
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)
|
protected void |
internalPut(java.lang.String key,
java.lang.Object value)
The expensive version of internalPut, it uses introspection |
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 |
---|
public JboValidatorContext(int sourceType, java.lang.Object source, java.lang.String sourceFullName, AttributeDef attribute, java.lang.Object oldValue, java.lang.Object newValue)
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 |
---|
public java.lang.Object getSource()
public Row getAttributeList()
public Row getSourceRow()
public java.lang.String getAttributeName()
public AttributeDef getAttributeDef()
public java.lang.Object getNewValue()
public java.lang.Object getOldValue()
public java.lang.String getSourceFullName()
public int getSourceType()
public JboTransValidationManager getTransValidationManager()
public JboTransAttrValidationManager getTransAttrValidationManager()
protected void setTransValidationManager(JboTransValidationManager mgr)
mgr
- public void setTransAttrValidationManager(JboTransAttrValidationManager mgr)
public WarningContainer getWarningContainer()
protected java.lang.Object internalGet(java.lang.String key)
internalGet
in class JboAbstractMap
protected void internalPut(java.lang.String key, java.lang.Object value)
internalPut
in class JboAbstractMap
public void addWarning(JboWarning warn)
warn
- a warning.
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1) E10653-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |