UML.Semantic.Foundation.AuxiliaryElements
Class Usage

java.lang.Object
  |
  +--UML.Semantic.Foundation.Core.ModelElement
        |
        +--UML.Semantic.Foundation.Core.Dependency
              |
              +--UML.Semantic.Foundation.AuxiliaryElements.Usage
All Implemented Interfaces:
Element, ElementAtt, LinkAtt

public class Usage
extends Dependency

A usage is a relationship in which one element requires another element (or set of elements) for its full implementation or operation. The relationship is not a mere historical artifact but an ongoing need. Therefore two elements related by usage must be in the same model.

In the metamodel a Usage is a Dependency in which the client requires the presence of the supplier. How the client uses the supplier, such as a class calling an operation of another class, a method having an argument of another class, and a method from a class instantiating another class, is defined in the description of the Usage.


Constructor Summary
Usage()
           
 
Method Summary
 boolean check()
          Checks if well-formedness rules are respected in this mode-element.
 
Methods inherited from class UML.Semantic.Foundation.Core.Dependency
getDescription, setClient, setDescription, setSupplier
 
Methods inherited from class UML.Semantic.Foundation.Core.ModelElement
add, add, getBindingList, getConstraintList, getElementType, getErrors, getHref, getId, getIdentification, getIdref, getIndex, getInfo, getIsOwned, getLabel, getLocator, getName, getNamespace, getNamespaceId, getStereotype, getTemplate, getTemplateParameterList, getTitle, getUuid, getUuidref, getVisibility, getVisibilitySymbol, getWarnings, setElementType, setErrors, setHref, setId, setIdref, setIndex, setIsOwned, setLabel, setName, setNamespace, setTemplate, setTitle, setUuid, setUuidref, setVisibility, setWarnings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Usage

public Usage()
Method Detail

check

public boolean check()
Checks if well-formedness rules are respected in this mode-element.

Overrides:
check in class Dependency
Returns:
True if check was successful, false otherwise.