com.softwareag.mdm.schema
Interface ConstraintContext

All Superinterfaces:
SchemaNodeContext

public interface ConstraintContext
extends SchemaNodeContext

Provides methods for setting up a constraint in the context of its schema.

See Also:
Constraint

Method Summary
 void addDependency(AdaptationName aName, Path aPath)
          Specifies that the constraint depends on the node of the adaptation specified.
 void addDependency(Path aPath)
          Specifies that the constraint depends on the node specified.
 
Methods inherited from interface com.softwareag.mdm.schema.SchemaNodeContext
addError, addError, addInfo, addMessage, addWarning, getSchemaNode
 

Method Detail

addDependency

public void addDependency(Path aPath)
                   throws PathAccessException
Specifies that the constraint depends on the node specified. It means that if the node's value is updated then the constraint must be rechecked.

Parameters:
aPath - If it is a relative path, it is resolved relatively to the current node.
Throws:
PathAccessException - If the node specified does not exist

addDependency

public void addDependency(AdaptationName aName,
                          Path aPath)
Specifies that the constraint depends on the node of the adaptation specified. It means that if the node's value is updated then the constraint must be rechecked.

Parameters:
aName - Must refer to an existing instance in the current repository.
aPath - If it is a relative path, it is resolved relatively to the current node.
Throws:
PathAccessException - If the node specified does not exist


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