oracle.jbo.server
Class JboMandatoryAttributesValidator
java.lang.Object
oracle.jbo.rules.JboNonNullValidator
oracle.jbo.server.JboMandatoryAttributesValidator
- All Implemented Interfaces:
- JboValidatorInterface
- public class JboMandatoryAttributesValidator
- extends 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.
- Since:
- JDeveloper 3.0
- See Also:
Entity
,
EntityDefImpl
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
JboMandatoryAttributesValidator
public JboMandatoryAttributesValidator(com.sun.java.util.collections.ArrayList al)
- Creates a default validator.
validate
public void validate(JboValidatorContext evObj)
- Validates the Entity Object's mandatory attributes.
- Specified by:
validate
in interface JboValidatorInterface
- Overrides:
validate
in class JboNonNullValidator
- Parameters:
evObj
- an event indicating the attributes to be validatated.
- Throws:
JboException
- if any attributes are found to be null.
Copyright © 1997, 2004, Oracle. All rights reserved.