|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Provides methods for setting up a constraint in the context of its schema.
This context provides methods for declaring contraint's dependencies. Constraint's dependencies are used for optimizing incremental validation, that is, the impact of a persistent update on the validation result. Three modes are available:
setDependencyToLocalNode().
addValueDependencyToNode(SchemaNode).
IMPORTANT NOTES:
Constraint| Method Summary | |
void |
addDependency(AdaptationName aName,
Path aPath)
Deprecated. |
void |
addDependency(Path aPath)
Deprecated. |
void |
addValueDependencyToNode(SchemaNode referredNode)
Specifies that the validation result of the current constraint depends on the value of the node specified. |
void |
setDependencyToLocalNode()
Specifies that the validation result of the current constraint depends only on the local value of the underlying node. |
| Methods inherited from interface com.orchestranetworks.schema.SchemaNodeContext |
addError, addError, addInfo, addMessage, addWarning, getSchemaNode |
| Method Detail |
public void addDependency(Path aPath)
throws PathAccessException
PathAccessException
public void addDependency(AdaptationName aName,
Path aPath)
public void addValueDependencyToNode(SchemaNode referredNode)
In the context of incremental validation, this means that this
constraint is subject to revalidation each time the referredNode
value is modified.
Warning: A call to this method implies that all dependencies are explicitly declared (explicit dependencies mode). For more information, see Dependencies and Validation section.
IllegalStateException - if a local dependency has been set to this constraint.
IllegalArgumentException - if referredNode is not a
terminal node
or under a terminal node.public void setDependencyToLocalNode()
For more information, see Dependencies and Validation section.
IllegalStateException - if a value dependency has been added to this constraint
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
(report a bug)
EBX.Platform 4.5.0 [0598]
Copyright Orchestra Networks 2000-2008. All rights reserved.