UML.Semantic.Foundation.Core
Class Parameter

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

public class Parameter
extends ModelElement

A parameter is an unbound variable that can be changed, passed or returned. A parameter may include a name, type and direction of communication. Parameters are used in the specification of operations, messages and events, templates etc.

In the metamodel a Parameter is a declaration of an argument to be passed to, or returned from an Operation, a Signal, etc.


Constructor Summary
Parameter()
          Constructor.
 
Method Summary
 boolean check()
          Checks if well-formedness rules are respected in this model element.
 java.lang.String getDefaultValue()
          Gets the default value of this parameter.
 void getInfo()
          Gets info on Parameter.
 java.lang.String getKind()
          Gets the current kind of parameter direction.
 Classifier getType()
          Returns the type of this parameter.
 void setDefaultValue(java.lang.String dv)
          Sets the default value for this parameter.
 void setKind(java.lang.String mode)
          Sets the parameter direction kind to the given value.
 void setType(java.lang.String type)
          Sets the type of this parameter.
 
Methods inherited from class UML.Semantic.Foundation.Core.ModelElement
add, add, getBindingList, getConstraintList, getElementType, getErrors, getHref, getId, getIdentification, getIdref, getIndex, 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

Parameter

public Parameter()
Constructor.

Method Detail

setKind

public void setKind(java.lang.String mode)
Sets the parameter direction kind to the given value.


getKind

public java.lang.String getKind()
Gets the current kind of parameter direction.

Returns:
the parameter direction kind.

setDefaultValue

public void setDefaultValue(java.lang.String dv)
Sets the default value for this parameter.


getDefaultValue

public java.lang.String getDefaultValue()
Gets the default value of this parameter.

Returns:
The default value string.

setType

public void setType(java.lang.String type)
Sets the type of this parameter.


getType

public Classifier getType()
Returns the type of this parameter.

Returns:
A Classifier object.

check

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

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

getInfo

public void getInfo()
Gets info on Parameter.

Overrides:
getInfo in class ModelElement