net.sf.farrago.cwm.core
Interface CwmDependencyClass
- All Superinterfaces:
- RefBaseObject, RefClass, RefFeatured
- All Known Implementing Classes:
- CwmDependencyClass$Hib
public interface CwmDependencyClass
- extends RefClass
Dependency class proxy interface.
A dependency states that the implementation or functioning of one or more
elements requires the presence of one or more other elements.
In the metamodel, a Dependency is a directed relationship from a client
(or clients) to a supplier (or suppliers) stating that the client is
dependent on the supplier (i.e., the client element requires the presence
and knowledge of the supplier element).
A dependency specifies that the semantics of a set of model elements
requires the presence of another set of model elements. This implies that
if the source is somehow modified, the dependents probably must be
modified. The reason for the dependency can be specified in several
different ways (e.g., using natural language or an algorithm) but is often
implicit.
Whenever the supplier element of a dependency changes, the client element
is potentially invalidated. After such invalidation, a check should be
performed followed by possible changes to the derived client element. Such
a check should be performed after which action can be taken to change the
derived element to validate it again.
Note: This type should not be subclassed,
implemented or directly instantiated by clients. It is generated from a
MOF metamodel and implemented by Enki or MDR.
createCwmDependency
CwmDependency createCwmDependency()
- The default factory operation used to create an instance object.
- Returns:
- The created instance object.
createCwmDependency
CwmDependency createCwmDependency(String name,
VisibilityKind visibility,
String kind)
- Creates an instance object having attributes initialized by the passed
values.
- Parameters:
name
- An identifier for the ModelElement within its containing
Namespace.visibility
- Specifies extent of the visibility of the
ModelElement within its owning Namespace.kind
- Contains a description of the nature of the dependency
relationship between the client and supplier. The list of possible
values is open-ended. However, CWM predefines the values "Abstraction"
and "Usage".
- Returns:
- The created instance object.