|
Oracle9i Business Components for Java API Reference Oracle9i Jdeveloper (9.0.4) B10391-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.jbo.server.JboMandatoryAttributesValidator
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
Constructor Summary | |
JboMandatoryAttributesValidator() Creates a default validator. |
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. |
boolean |
validateValue(java.lang.Object value) Not implemented for this class. |
void |
vetoableChange(PropertyChangeEvent 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 |
Constructor Detail |
public JboMandatoryAttributesValidator()
Method Detail |
public void vetoableChange(PropertyChangeEvent evObj) throws JboException
vetoableChange
in interface VetoableChangeListener
evObj
- an event indicating the attributes to be validatated.JboException
- if any attributes are found to be null.public boolean validateValue(java.lang.Object value)
validateValue
in interface JbiValidator
value
- a value.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getDescription()
getDescription
in interface JbiValidator
public void setDescription(java.lang.String description)
setDescription
in interface JbiValidator
description
- a documentation string.
|
Oracle9i Business Components for Java API Reference Oracle9i Jdeveloper (9.0.4) B10391-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2003, Oracle. All rights reserved.