|
Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectoracle.jbo.rules.JboNonNullValidator
Implements non-null validation for mandatory attributes. This validation rule is applied by the framework to an Entity Object that has the mandatory flag set for any of its an attributes. The method isMandatory() identifies manditory attributes.
This validator is invoked by an Entity Objects's validate() method to confirm that its mandatory attributes are non-null. If any attribute is null, AttrValException is thrown. The framework does not perform this validation when an attribute value is changed, but only when its Enitity Object is validated.
Entity,
EntityDefImpl| Field Summary | |
protected AttributeDef[] |
mandatoryAttrs
|
protected java.lang.String |
mDescription
|
| Constructor Summary | |
JboNonNullValidator(com.sun.java.util.collections.ArrayList vec)
Creates a validator from a list of attribute indices. |
|
| Method Summary | |
java.lang.String |
getDescription()
Gets the description of this validator. |
void |
setDescription(java.lang.String description)
Sets the description of this validator. |
java.lang.String |
toString()
Internal: Applications should not use this method. |
void |
validate(JboValidatorContext evObj)
Validates the Entity Object's mandatory attributes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected transient AttributeDef[] mandatoryAttrs
protected java.lang.String mDescription
| Constructor Detail |
public JboNonNullValidator(com.sun.java.util.collections.ArrayList vec)
vec - a list of indices for attributes to be considered manditory.| Method Detail |
public void validate(JboValidatorContext evObj)
validate in interface JboValidatorInterfaceevObj - an event indicating the attributes to be validatated.
true if the value is valid.
JboException - if any attributes are found to be null.public java.lang.String toString()
public java.lang.String getDescription()
getDescription in interface JboValidatorInterfacepublic void setDescription(java.lang.String description)
setDescription in interface JboValidatorInterfacedescription - a documentation string.
|
Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright © 1997, 2004, Oracle. All rights reserved.