com.orchestranetworks.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 unsupported feature
maxOccurs > 1 unsupported feature

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)
EBX.Platform 4.5.3 [0607:0001]
Copyright Orchestra Networks 2000-2008. All rights reserved.