UML.Semantic.Foundation.Core
Class Method

java.lang.Object
  |
  +--UML.Semantic.Foundation.Core.ModelElement
        |
        +--UML.Semantic.Foundation.Core.Feature
              |
              +--UML.Semantic.Foundation.Core.BehavioralFeature
                    |
                    +--UML.Semantic.Foundation.Core.Method
All Implemented Interfaces:
Element, ElementAtt, LinkAtt

public class Method
extends BehavioralFeature

A method is the implementation of an operation. It specifies the algorithm or procedure that effects the results of an operation.

In the metamodel a Method is a declaration of a named piece of behavior in a Classifier and realizes one or a set of Operations of the Classifier.


Constructor Summary
Method()
          Constructor.
 
Method Summary
 void add(Operation elem)
          Sets the operation this method specifies.
 void add(ProcedureExpression body)
          Adds a procedure expression to this element.
 boolean check()
          Checks if well-formedness rules are respected in this model element.
 java.lang.String getSpecification()
          Gets the operation this method specificates.
 
Methods inherited from class UML.Semantic.Foundation.Core.BehavioralFeature
add, getIsQuery, getParameter, getParameterAt, getParameterList, getReturnList, getSignature, setIsQuery
 
Methods inherited from class UML.Semantic.Foundation.Core.Feature
getOwner, getOwnerScope, setOwner, setOwnerScope
 
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

Method

public Method()
Constructor.

Method Detail

add

public void add(ProcedureExpression body)
Adds a procedure expression to this element.


add

public void add(Operation elem)
Sets the operation this method specifies.


getSpecification

public java.lang.String getSpecification()
Gets the operation this method specificates.

Returns:
An Operation identifier.

check

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

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