com.softwareag.mdm.schema
Interface ConstraintOnNull


public interface ConstraintOnNull

Defines a check for values that become mandatory under certain circumstances.

Schema definition and life-cycle

Any implementation of this interface must also implement Constraint interface. As such, its schema declaration and its life-cycle are the same as Constraint.

Restriction policy

As this interface serves as a restriction of static schema constraint minOccurs, the method checkNull(ValueContextForValidation) is called only for the following conditions:

Schema definition Perform checkNull()
minOccurs="0" and maxOccurs="1" if no value is defined (this is null) and instance is activated
minOccurs > 0 never (not applicable)
maxOccurs > 1 never (not applicable)

See Also:
Constraint

Method Summary
 void checkNull(ValueContextForValidation aValidationContext)
          This method performs a check when no value is defined and it adds an error message if needed.
 

Method Detail

checkNull

public void checkNull(ValueContextForValidation aValidationContext)
               throws InvalidSchemaException
This method performs a check when no value is defined and it adds an error message if needed.

See this class comment that specifies when this method is called.

Parameters:
aValidationContext - the context
Throws:
InvalidSchemaException - if some schema's dynamic condition prevents the execution of this method.


(report a bug)
webMethods MDM 4.2.8 [0558]
Copyright Software AG 2000-2007. All rights reserved.