uk.ac.ucl.cs.uml.jmi.Foundation.Core
Interface Method

All Superinterfaces:
BehavioralFeature, Element, ExtObject, Feature, ModelElement, javax.jmi.reflect.RefBaseObject, javax.jmi.reflect.RefFeatured, javax.jmi.reflect.RefObject
All Known Implementing Classes:
Method_Impl

public interface 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 (directly) or a set (indirectly) of Operations of the Classifier. There may be at most one method for a particular classifier (as owner of the method) and operation (as specification of the method) pairing.


Method Summary
 ProcedureExpression getBody()
          The implementation of the Method as a ProcedureExpression.
 Procedure getProcedure()
          Not documented in spec! from ::"Behavioral Elements"::"Common Behavior"::Procedure, pg.
 Operation getSpecification()
          Designates an Operation that the Method implements.
 void setBody(ProcedureExpression body)
          Setter for atomic property body)
 void setProcedure(Procedure procedure)
          Setter for atomic property procedure)
 void setSpecification(Operation specification)
          Setter for atomic property specification)
 
Methods inherited from interface uk.ac.ucl.cs.uml.jmi.Foundation.Core.BehavioralFeature
getIsQuery, getParameter, getRaisedSignal, hasSameSignature, matchesSignature, setIsQuery
 
Methods inherited from interface uk.ac.ucl.cs.uml.jmi.Foundation.Core.Feature
getOwner, getOwnerScope, setOwner, setOwnerScope
 
Methods inherited from interface uk.ac.ucl.cs.uml.jmi.Foundation.Core.ModelElement
getAsArgument, getBehavior, getClientDependency, getComment, getConstraint, getContainer, getDefaultElement, getIsSpecification, getName, getNamespace, getPackage, getPresentation, getReferenceTag, getSourceFlow, getStereotype, getSupplierDependency, getTaggedValue, getTargetFlow, getTemplate, getTemplateArgument, getTemplateParameter, getVisibility, setDefaultElement, setIsSpecification, setName, setNamespace, setTemplate, setVisibility
 
Methods inherited from interface uk.ac.ucl.cs.emofocl.jmi.reflect.extended.ExtObject
extAddObjectListener, extDeepCopy, extDeepCopy, extEquals, extRemoveObjectListener, extValueHash, extVisit
 
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

getBody

ProcedureExpression getBody()
                            throws javax.jmi.reflect.JmiException
The implementation of the Method as a ProcedureExpression.

Throws:
javax.jmi.reflect.JmiException

setBody

void setBody(ProcedureExpression body)
             throws javax.jmi.reflect.JmiException
Setter for atomic property body)

Throws:
javax.jmi.reflect.JmiException

getSpecification

Operation getSpecification()
                           throws javax.jmi.reflect.JmiException
Designates an Operation that the Method implements. The Operation must be owned by the Classifier that owns the Method or be inherited by it. The signatures of the Operation and Method must match.

Throws:
javax.jmi.reflect.JmiException

setSpecification

void setSpecification(Operation specification)
                      throws javax.jmi.reflect.JmiException
Setter for atomic property specification)

Throws:
javax.jmi.reflect.JmiException

getProcedure

Procedure getProcedure()
                       throws javax.jmi.reflect.JmiException
Not documented in spec! from ::"Behavioral Elements"::"Common Behavior"::Procedure, pg. 2-95

Throws:
javax.jmi.reflect.JmiException

setProcedure

void setProcedure(Procedure procedure)
                  throws javax.jmi.reflect.JmiException
Setter for atomic property procedure)

Throws:
javax.jmi.reflect.JmiException