uk.ac.ucl.cs.uml.jmi.impl.Foundation.Core
Class Parameter_Impl

java.lang.Object
  extended by uk.ac.ucl.cs.emofocl.jmi.reflect.RefBaseObjectImpl
      extended by uk.ac.ucl.cs.emofocl.jmi.reflect.RefFeaturedImpl
          extended by uk.ac.ucl.cs.emofocl.jmi.reflect.RefObjectImpl
              extended by uk.ac.ucl.cs.emofocl.jmi.reflect.extended.ExtObjectImpl
                  extended by uk.ac.ucl.cs.uml.jmi.impl.Foundation.Core.Parameter_Impl
All Implemented Interfaces:
javax.jmi.reflect.RefBaseObject, javax.jmi.reflect.RefFeatured, javax.jmi.reflect.RefObject, ExtObject, Element, ModelElement, Parameter

public class Parameter_Impl
extends ExtObjectImpl
implements Parameter

Instance implementation for type Parameter


Nested Class Summary
 
Nested classes/interfaces inherited from class uk.ac.ucl.cs.emofocl.jmi.reflect.RefFeaturedImpl
RefFeaturedImpl.Getter, RefFeaturedImpl.Setter
 
Field Summary
 
Fields inherited from class uk.ac.ucl.cs.emofocl.jmi.reflect.RefObjectImpl
DELEGATOR, MOF_ID, PROXY
 
Fields inherited from class uk.ac.ucl.cs.emofocl.jmi.reflect.RefBaseObjectImpl
IMMEDIATE_PACKAGE, META_OBJECT
 
Constructor Summary
Parameter_Impl(RefPackageImpl immediatePackage, javax.jmi.reflect.RefObject metaObject, RefClassImpl proxy, javax.jmi.reflect.RefObject delegator)
           
 
Method Summary
 ExtObject extDeepCopy(Map objectMap)
           
 boolean extEquals(ExtObject extObject)
           
 int extValueHash()
           
 Object extVisit(ExtVisitor visitor, Object argument)
           
 Collection getAsArgument()
          Indicates zero or more TemplateArgument for which the model element is an argument in a template binding.
 Collection getBehavior()
          Not documented in spec! from ::"Behavioral Elements"::"State Machines"::StateMachine, pg.
 BehavioralFeature getBehavioralFeature()
          Not documented in spec!
 Collection getClientDependency()
          Inverse of client.
 Collection getComment()
          Not documented in spec!
 Collection getConstraint()
          A set of Constraints affecting the element.
 Collection getContainer()
          The component that an implemented model element resides in.
 ModelElement getDefaultElement()
          Not part of specification! Merged from TemplateParameter association class.
 Expression getDefaultValue()
          An Expression whose evaluation yields a value to be used when no argument is supplied for the Parameter.
 boolean getIsSpecification()
          Not part of specification! Merged from ElementOwnership association class.
 ParameterDirectionKind getKind()
          Specifies what kind of a Parameter is required.
 String getName()
          An identifier for the ModelElement within its containing Namespace.
 Namespace getNamespace()
          Designates the Namespace that contains the ModelElement.
 Collection getPackage()
          Not documented in spec!
 Collection getPresentation()
          A set of PresentationElements that present a view of the ModelElement.
 Collection getReferenceTag()
          Not documented in spec!
 Collection getSourceFlow()
          Not documented in spec!
 Collection getState()
          Not documented in spec! added opposite from ::"Behavioral Elements"::"Activity Graphs"::ObjectFlowState
 Collection getStereotype()
          Designates the stereotypes that further qualify the UML metaclass (the base class or one of its subclasses) of the modeling element.
 Collection getSupplierDependency()
          Inverse of supplier.
 Collection getTaggedValue()
          An arbitrary property attached to the model element based on an associated tag definition.
 Collection getTargetFlow()
          Not documented in spec!
 ModelElement getTemplate()
          Not documented in spec!
 Collection getTemplateArgument()
          Not documented in spec! From diagram p.
 List getTemplateParameter()
          (association class TemplateParameter) A composite aggregation ordered list of parameters.
 Classifier getType()
          Designates a Classifier to which an argument value must conform.
 VisibilityKind getVisibility()
          Not part of specification! Merged from ElementOwnership association class.
 void refDelete()
          Removes all references to this object, and calls superclass proxies to do the same.
 Object refGetValue(String featureName)
           
 Object refInvokeOperation(String requestedOperation, List args)
          Not implemented.
 void refSetValue(String featureName, Object value)
           
 Collection refVerifyConstraints(boolean deepVerify)
           
 void setBehavioralFeature(BehavioralFeature newValue)
          Setter for atomic property behavioralFeature)
 void setDefaultElement(ModelElement defaultElement)
          Setter for atomic property defaultElement)
 void setDefaultValue(Expression newValue)
          Setter for atomic property defaultValue)
 void setIsSpecification(boolean isSpecification)
          Setter for atomic property isSpecification)
 void setKind(ParameterDirectionKind newValue)
          Setter for atomic property kind)
 void setName(String name)
          Setter for atomic property name)
 void setNamespace(Namespace namespace)
          Setter for atomic property namespace)
 void setTemplate(ModelElement template)
          Setter for atomic property template)
 void setType(Classifier newValue)
          Setter for atomic property type)
 void setVisibility(VisibilityKind visibility)
          Setter for atomic property visibility)
 String toString()
           
 
Methods inherited from class uk.ac.ucl.cs.emofocl.jmi.reflect.extended.ExtObjectImpl
componentEquals, extAddObjectListener, extDeepCopy, extRemoveObjectListener, extSetImmediateComposite, firePropertyValueAdded, firePropertyValueChanged, firePropertyValueRemoved, javaEquals, javaEquals, javaEquals, javaEquals, javaEquals, javaEquals, refImmediateComposite
 
Methods inherited from class uk.ac.ucl.cs.emofocl.jmi.reflect.RefObjectImpl
refClass, refIsInstanceOf, refMofId, refOutermostComposite
 
Methods inherited from class uk.ac.ucl.cs.emofocl.jmi.reflect.RefFeaturedImpl
refGetValue, refInvokeOperation, refSetValue
 
Methods inherited from class uk.ac.ucl.cs.emofocl.jmi.reflect.RefBaseObjectImpl
refImmediatePackage, refMetaObject, refOutermostPackage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface uk.ac.ucl.cs.emofocl.jmi.reflect.extended.ExtObject
extAddObjectListener, extDeepCopy, extRemoveObjectListener
 
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refImmediateComposite, refIsInstanceOf, refOutermostComposite
 
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refInvokeOperation, refSetValue
 
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage
 

Constructor Detail

Parameter_Impl

public Parameter_Impl(RefPackageImpl immediatePackage,
                      javax.jmi.reflect.RefObject metaObject,
                      RefClassImpl proxy,
                      javax.jmi.reflect.RefObject delegator)
Method Detail

refGetValue

public Object refGetValue(String featureName)
Specified by:
refGetValue in interface javax.jmi.reflect.RefFeatured

refSetValue

public void refSetValue(String featureName,
                        Object value)
Specified by:
refSetValue in interface javax.jmi.reflect.RefFeatured

refInvokeOperation

public Object refInvokeOperation(String requestedOperation,
                                 List args)
                          throws javax.jmi.reflect.RefException
Not implemented.

Specified by:
refInvokeOperation in interface javax.jmi.reflect.RefFeatured
Throws:
javax.jmi.reflect.RefException

refDelete

public void refDelete()
Removes all references to this object, and calls superclass proxies to do the same.

Specified by:
refDelete in interface javax.jmi.reflect.RefObject
Overrides:
refDelete in class RefObjectImpl

refVerifyConstraints

public Collection refVerifyConstraints(boolean deepVerify)
Specified by:
refVerifyConstraints in interface javax.jmi.reflect.RefBaseObject

getTargetFlow

public Collection getTargetFlow()
                         throws javax.jmi.reflect.JmiException
Not documented in spec!

Specified by:
getTargetFlow in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getConstraint

public Collection getConstraint()
                         throws javax.jmi.reflect.JmiException
A set of Constraints affecting the element. A constraint that must be satisfied by the model element. A model element may have a set of constraints. The constraint is to be evaluated when the system is stable; that is, not in the middle of an atomic operation.

Specified by:
getConstraint in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getIsSpecification

public boolean getIsSpecification()
                           throws javax.jmi.reflect.JmiException
Not part of specification! Merged from ElementOwnership association class.

Specified by:
getIsSpecification in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

setIsSpecification

public void setIsSpecification(boolean isSpecification)
                        throws javax.jmi.reflect.JmiException
Description copied from interface: ModelElement
Setter for atomic property isSpecification)

Specified by:
setIsSpecification in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getComment

public Collection getComment()
                      throws javax.jmi.reflect.JmiException
Not documented in spec!

Specified by:
getComment in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getName

public String getName()
               throws javax.jmi.reflect.JmiException
An identifier for the ModelElement within its containing Namespace.

Specified by:
getName in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

setName

public void setName(String name)
             throws javax.jmi.reflect.JmiException
Description copied from interface: ModelElement
Setter for atomic property name)

Specified by:
setName in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getAsArgument

public Collection getAsArgument()
                         throws javax.jmi.reflect.JmiException
Indicates zero or more TemplateArgument for which the model element is an argument in a template binding. This AssociationEnd is not named in class diagram on p.2-17!

Specified by:
getAsArgument in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getTemplateArgument

public Collection getTemplateArgument()
                               throws javax.jmi.reflect.JmiException
Not documented in spec! From diagram p. 2-17.

Specified by:
getTemplateArgument in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getTemplateParameter

public List getTemplateParameter()
                          throws javax.jmi.reflect.JmiException
(association class TemplateParameter) A composite aggregation ordered list of parameters. Each parameter is a dummy ModelElement designated as a placeholder for a real ModelElement to be substituted during a binding of the template (see Binding). The real model element must be of the same kind (or a descendant kind) as the dummy ModelElement. The properties of the dummy ModelElement are ignored, except the name of the dummy element is used as the name of the template parameter. The association class TemplateParameter may be associated with a default ModelElement of the same kind as the dummy ModelElement. In the case of a Binding that does not supply an argument corresponding to the parameter, the value of the default ModelElement is used. If a Binding lacks an argument and there is no default ModelElement, the construct is invalid. Note that the template parameter element lacks structure. For example, a parameter that is a Class lacks Features; they are found in the actual argument.

Specified by:
getTemplateParameter in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getDefaultElement

public ModelElement getDefaultElement()
                               throws javax.jmi.reflect.JmiException
Not part of specification! Merged from TemplateParameter association class.

Specified by:
getDefaultElement in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

setDefaultElement

public void setDefaultElement(ModelElement defaultElement)
                       throws javax.jmi.reflect.JmiException
Description copied from interface: ModelElement
Setter for atomic property defaultElement)

Specified by:
setDefaultElement in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getPackage

public Collection getPackage()
                      throws javax.jmi.reflect.JmiException
Not documented in spec!

Specified by:
getPackage in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getPresentation

public Collection getPresentation()
                           throws javax.jmi.reflect.JmiException
A set of PresentationElements that present a view of the ModelElement.

Specified by:
getPresentation in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getSupplierDependency

public Collection getSupplierDependency()
                                 throws javax.jmi.reflect.JmiException
Inverse of supplier. Designates a set of Dependency in which the ModelElement is a supplier.

Specified by:
getSupplierDependency in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getTaggedValue

public Collection getTaggedValue()
                          throws javax.jmi.reflect.JmiException
An arbitrary property attached to the model element based on an associated tag definition. The interpretation of the tagged value is outside the scope of the UML metamodel.

Specified by:
getTaggedValue in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getTemplate

public ModelElement getTemplate()
                         throws javax.jmi.reflect.JmiException
Not documented in spec!

Specified by:
getTemplate in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

setTemplate

public void setTemplate(ModelElement template)
                 throws javax.jmi.reflect.JmiException
Description copied from interface: ModelElement
Setter for atomic property template)

Specified by:
setTemplate in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getSourceFlow

public Collection getSourceFlow()
                         throws javax.jmi.reflect.JmiException
Not documented in spec!

Specified by:
getSourceFlow in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getVisibility

public VisibilityKind getVisibility()
                             throws javax.jmi.reflect.JmiException
Not part of specification! Merged from ElementOwnership association class.

Specified by:
getVisibility in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

setVisibility

public void setVisibility(VisibilityKind visibility)
                   throws javax.jmi.reflect.JmiException
Description copied from interface: ModelElement
Setter for atomic property visibility)

Specified by:
setVisibility in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getContainer

public Collection getContainer()
                        throws javax.jmi.reflect.JmiException
The component that an implemented model element resides in. Called implementationLocation in spec! Name taken from diagram on p. 2-16.

Specified by:
getContainer in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getBehavior

public Collection getBehavior()
                       throws javax.jmi.reflect.JmiException
Not documented in spec! from ::"Behavioral Elements"::"State Machines"::StateMachine, pg. 2-141

Specified by:
getBehavior in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getClientDependency

public Collection getClientDependency()
                               throws javax.jmi.reflect.JmiException
Inverse of client. Designates a set of Dependency in which the ModelElement is a client.

Specified by:
getClientDependency in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getReferenceTag

public Collection getReferenceTag()
                           throws javax.jmi.reflect.JmiException
Not documented in spec!

Specified by:
getReferenceTag in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getStereotype

public Collection getStereotype()
                         throws javax.jmi.reflect.JmiException
Designates the stereotypes that further qualify the UML metaclass (the base class or one of its subclasses) of the modeling element. The stereotype does not conflict with or contradict the standard semantics of the metaclass to which it applies, but may specify additional constraints and tag definitions. All constraints and tag definitions on a stereotype apply to the model elements that are branded by the stereotype. The stereotype acts as a virtual metaclass describing the model element.

Specified by:
getStereotype in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getNamespace

public Namespace getNamespace()
                       throws javax.jmi.reflect.JmiException
Designates the Namespace that contains the ModelElement. Every ModelElement except a root element must belong to exactly one Namespace or else be a composite part of another ModelElement (which is a kind of virtual namespace). The pathname of Namespace or ModelElement names starting from the root package provides a unique designation for every ModelElement. The association attribute visibility specifies the visibility of the element outside its namespace (see ElementOwnership).

Specified by:
getNamespace in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

setNamespace

public void setNamespace(Namespace namespace)
                  throws javax.jmi.reflect.JmiException
Description copied from interface: ModelElement
Setter for atomic property namespace)

Specified by:
setNamespace in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getDefaultValue

public Expression getDefaultValue()
                           throws javax.jmi.reflect.JmiException
An Expression whose evaluation yields a value to be used when no argument is supplied for the Parameter.

Specified by:
getDefaultValue in interface Parameter
Throws:
javax.jmi.reflect.JmiException

setDefaultValue

public void setDefaultValue(Expression newValue)
                     throws javax.jmi.reflect.JmiException
Description copied from interface: Parameter
Setter for atomic property defaultValue)

Specified by:
setDefaultValue in interface Parameter
Throws:
javax.jmi.reflect.JmiException

getKind

public ParameterDirectionKind getKind()
                               throws javax.jmi.reflect.JmiException
Specifies what kind of a Parameter is required. Possibilities are: • in - An input Parameter (may not be modified). • out - An output Parameter (may be modified to communicate information to the caller). • inout - An input Parameter that may be modified. • return -A return value of a call.

Specified by:
getKind in interface Parameter
Throws:
javax.jmi.reflect.JmiException

setKind

public void setKind(ParameterDirectionKind newValue)
             throws javax.jmi.reflect.JmiException
Description copied from interface: Parameter
Setter for atomic property kind)

Specified by:
setKind in interface Parameter
Throws:
javax.jmi.reflect.JmiException

getType

public Classifier getType()
                   throws javax.jmi.reflect.JmiException
Designates a Classifier to which an argument value must conform.

Specified by:
getType in interface Parameter
Throws:
javax.jmi.reflect.JmiException

setType

public void setType(Classifier newValue)
             throws javax.jmi.reflect.JmiException
Description copied from interface: Parameter
Setter for atomic property type)

Specified by:
setType in interface Parameter
Throws:
javax.jmi.reflect.JmiException

getBehavioralFeature

public BehavioralFeature getBehavioralFeature()
                                       throws javax.jmi.reflect.JmiException
Not documented in spec!

Specified by:
getBehavioralFeature in interface Parameter
Throws:
javax.jmi.reflect.JmiException

setBehavioralFeature

public void setBehavioralFeature(BehavioralFeature newValue)
                          throws javax.jmi.reflect.JmiException
Description copied from interface: Parameter
Setter for atomic property behavioralFeature)

Specified by:
setBehavioralFeature in interface Parameter
Throws:
javax.jmi.reflect.JmiException

getState

public Collection getState()
                    throws javax.jmi.reflect.JmiException
Not documented in spec! added opposite from ::"Behavioral Elements"::"Activity Graphs"::ObjectFlowState

Specified by:
getState in interface Parameter
Throws:
javax.jmi.reflect.JmiException

extDeepCopy

public ExtObject extDeepCopy(Map objectMap)
Specified by:
extDeepCopy in interface ExtObject

extValueHash

public int extValueHash()
Specified by:
extValueHash in interface ExtObject

extEquals

public boolean extEquals(ExtObject extObject)
Specified by:
extEquals in interface ExtObject

extVisit

public Object extVisit(ExtVisitor visitor,
                       Object argument)
                throws Exception
Specified by:
extVisit in interface ExtObject
Throws:
Exception

toString

public String toString()
Overrides:
toString in class Object