|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines a check for values that become mandatory under certain circumstances.
Any implementation of this interface must also implement Constraint
interface.
As such, its schema declaration and its life-cycle are the same as Constraint
.
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) |
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 |
public void checkNull(ValueContextForValidation aValidationContext) throws InvalidSchemaException
See this class comment that specifies when this method is called.
aValidationContext
- the context
InvalidSchemaException
- if some schema's dynamic condition prevents the execution of this method.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
(report a bug)
webMethods MDM 4.2.8 [0558]
Copyright Software AG 2000-2007. All rights reserved.