net.sf.farrago.cwm.core
Interface CwmDependency

All Superinterfaces:
CwmElement, CwmModelElement, RefBaseObject, RefFeatured, RefObject
All Known Implementing Classes:
CwmDependency$Hib

public interface CwmDependency
extends CwmModelElement

Dependency object instance 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.


Method Summary
 Collection<CwmModelElement> getClient()
          Returns the value of reference client.
 String getKind()
          Returns the value of attribute kind.
 Collection<CwmModelElement> getSupplier()
          Returns the value of reference supplier.
 void setKind(String newValue)
          Sets the value of kind attribute.
 
Methods inherited from interface net.sf.farrago.cwm.core.CwmModelElement
getClientDependency, getConstraint, getImporter, getName, getNamespace, getVisibility, setName, setNamespace, setVisibility
 
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
 
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refGetValue, refInvokeOperation, refInvokeOperation, refSetValue, refSetValue
 
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
 

Method Detail

getKind

String getKind()
Returns the value of attribute 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:
Value of attribute kind.

setKind

void setKind(String newValue)
Sets the value of kind attribute. See getKind() for description on the attribute.

Parameters:
newValue - New value to be set.

getClient

Collection<CwmModelElement> getClient()
Returns the value of reference client.

Returns:
Value of reference client. Element type: CwmModelElement

getSupplier

Collection<CwmModelElement> getSupplier()
Returns the value of reference supplier.

Returns:
Value of reference supplier. Element type: CwmModelElement