org.omg.cwm.objectmodel.core
Interface Dependency
- All Superinterfaces:
- Element, ModelElement, javax.jmi.reflect.RefBaseObject, javax.jmi.reflect.RefFeatured, javax.jmi.reflect.RefObject
- public interface Dependency
- extends ModelElement
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.
Method Summary |
java.util.Collection |
getClient()
|
java.lang.String |
getKind()
Contains a description of the nature of the dependency relationship between
the client and supplier. |
java.util.Collection |
getSupplier()
|
void |
setKind(java.lang.String newValue)
Contains a description of the nature of the dependency relationship between
the client and supplier. |
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 |
getKind
public java.lang.String getKind()
throws javax.jmi.reflect.JmiException
- 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".
setKind
public void setKind(java.lang.String newValue)
throws javax.jmi.reflect.JmiException
- 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".
getClient
public java.util.Collection getClient()
throws javax.jmi.reflect.JmiException
getSupplier
public java.util.Collection getSupplier()
throws javax.jmi.reflect.JmiException
Copyright 1997-2005 by Object Management Group, Inc. (http://www.omg.org/),
250 First Ave. Needham, MA 02494 U.S.A. All rights reserved.
Unless otherwise indicated, users may make a single copy of the contents,
in whole or in part, of this web site strictly for personal, non-commercial
use. In the event that all or part of this site is downloaded for personal
use, users shall maintain all proprietary notices including copyright notices
that appear on or in connection with that content. Other than creating a
single copy of contents for personal use as described herein, users may not
copy, reproduce, distribute, republish, download, display, post or transmit
in any form or by any means, including but not limited to electronic,
mechanical, photocopying, recording, or other means, any content found or
linked to the OMG web site without the prior express written permission of OMG.
Any unauthorized use of any content contained on the OMG web site may violate
the copyright laws, trademark laws, laws relating to publicity and privacy,
and other regulations and statutes in the U.S. and other countries.