public interface Parameter extends ConnectableElement, MultiplicityElement
The following features are supported:
UMLPackage.getParameter()
SEPARATOR
Modifier and Type | Method and Description |
---|---|
ValueSpecification |
createDefaultValue(String name,
Type type,
EClass eClass)
Creates a new
ValueSpecification , with the specified 'Name', and 'Type',
and sets the 'Default Value' containment reference |
String |
getDefault()
Returns the value of the 'Default' attribute
|
ValueSpecification |
getDefaultValue()
Returns the value of the 'Default Value' containment reference
|
ParameterDirectionKind |
getDirection()
Returns the value of the 'Direction' attribute.
|
ParameterEffectKind |
getEffect()
Returns the value of the 'Effect' attribute.
|
Operation |
getOperation()
Returns the value of the 'Operation' reference
|
ParameterSet |
getParameterSet(String name)
Retrieves the first
ParameterSet with the specified 'Name' from the '
Parameter Set' reference list |
ParameterSet |
getParameterSet(String name,
boolean ignoreCase)
Retrieves the first
ParameterSet with the specified 'Name' from the '
Parameter Set' reference list |
MDWEList<ParameterSet> |
getParameterSets()
Returns the value of the 'Parameter Set' reference list.
|
boolean |
isException()
Returns the value of the 'Is Exception' attribute.
|
boolean |
isSetDefault()
Returns whether the value of the '
Default ' attribute is set |
boolean |
isSetEffect()
Returns whether the value of the '
Effect ' attribute is set |
boolean |
isStream()
Returns the value of the 'Is Stream' attribute.
|
void |
setBooleanDefaultValue(boolean value)
Sets the default value for this parameter to the specified Boolean value
|
void |
setDefault(String value)
Sets the value of the '
Default ' attribute |
void |
setDefaultValue(ValueSpecification value)
Sets the value of the '
Default Value ' containment reference |
void |
setDirection(ParameterDirectionKind value)
Sets the value of the '
Direction ' attribute |
void |
setEffect(ParameterEffectKind value)
Sets the value of the '
Effect ' attribute |
void |
setIntegerDefaultValue(int value)
Sets the default value for this parameter to the specified integer value
|
void |
setIsException(boolean value)
Sets the value of the '
Is Exception ' attribute |
void |
setIsStream(boolean value)
Sets the value of the '
Is Stream ' attribute |
void |
setNullDefaultValue()
Sets the default value for this parameter to the null value
|
void |
setStringDefaultValue(String value)
Sets the default value for this parameter to the specified string value
|
void |
setUnlimitedNaturalDefaultValue(int value)
Sets the default value for this parameter to the specified unlimited natural value
|
void |
unsetDefault()
Unsets the value of the '
Default ' attribute |
void |
unsetEffect()
Unsets the value of the '
Effect ' attribute |
boolean |
validateConnectorEnd(DiagnosticChain diagnostics,
Map context)
A parameter may only be associated with a connector end within the context of a collaboration.
|
boolean |
validateInAndOut(DiagnosticChain diagnostics,
Map context)
Only in and inout parameters may have a delete effect.
|
boolean |
validateNotException(DiagnosticChain diagnostics,
Map context)
An input parameter cannot be an exception.
|
boolean |
validateReentrantBehaviors(DiagnosticChain diagnostics,
Map context)
Reentrant behaviors cannot have stream parameters.
|
boolean |
validateStreamAndException(DiagnosticChain diagnostics,
Map context)
A parameter cannot be a stream and exception at the same time.
|
getEnds
getType, setType
allNamespaces, allOwningPackages, createDependency, createNameExpression, getClientDependencies, getClientDependency, getClientDependency, getLabel, getLabel, getName, getNameExpression, getNamespace, getQualifiedName, getVisibility, isDistinguishableFrom, isSetName, isSetVisibility, separator, setName, setNameExpression, setVisibility, unsetName, unsetVisibility, validateHasNoQualifiedName, validateHasQualifiedName, validateVisibilityNeedsOwnership
addKeyword, allOwnedElements, applyStereotype, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedSubstereotype, getAppliedSubstereotypes, getKeywords, getModel, getNearestPackage, getOwnedComments, getOwnedElements, getOwner, getRelationships, getRelationships, getRequiredStereotype, getRequiredStereotypes, getSourceDirectedRelationships, getSourceDirectedRelationships, getStereotypeApplication, getStereotypeApplications, getTargetDirectedRelationships, getTargetDirectedRelationships, getValue, hasKeyword, hasValue, isStereotypeApplicable, isStereotypeApplied, isStereotypeRequired, mustBeOwned, removeKeyword, setValue, unapplyStereotype, validateHasOwner, validateNotOwnSelf
compareTo, eExtendedClass, eIsInstanceOf, eIsInstanceOf, eIsProfiled, eIsRemoved, eMetamodel, eMetaTypeName, eModel, eRemove, eSetUniqueID, eUniqueID, superScript, superScript, toBoolean, toBoolean, toByte, toByte, toChar, toChar, toDouble, toDouble, toFloat, toFloat, toInt, toInt, toList, toList, toList, toList, toList, toLong, toLong, toObject, toObject, toSet, toSet, toShort, toShort, toString, toString
getEAnnotation, getEAnnotations
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
getOwningTemplateParameter, getTemplateParameter, isCompatibleWith, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter
compatibleWith, createLowerValue, createUpperValue, getLower, getLowerValue, getUpper, getUpperValue, includesCardinality, includesMultiplicity, is, isMultivalued, isOrdered, isUnique, lowerBound, setIsOrdered, setIsUnique, setLower, setLowerValue, setUpper, setUpperValue, upperBound, validateLowerGe0, validateUpperGeLower, validateUpperGt0, validateValueSpecificationConstant, validateValueSpecificationNoSideEffects
MDWEList<ParameterSet> getParameterSets()
ParameterSet
.
It is bidirectional and its opposite is 'Parameter
'.
The parameter sets containing the parameter. See ParameterSet.
UMLPackage.getParameter_ParameterSet()
,
ParameterSet.getParameters()
ParameterSet getParameterSet(String name)
ParameterSet
with the specified 'Name' from the '
Parameter Set' reference list.
name
- The 'Name' of the ParameterSet
to retrieve, or null
.ParameterSet
with the specified 'Name', or null
.getParameterSets()
ParameterSet getParameterSet(String name, boolean ignoreCase)
ParameterSet
with the specified 'Name' from the '
Parameter Set' reference list.
name
- The 'Name' of the ParameterSet
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.ParameterSet
with the specified 'Name', or null
.getParameterSets()
Operation getOperation()
UMLPackage.getParameter_Operation()
ParameterDirectionKind getDirection()
"in"
.
The literals are from the enumeration ParameterDirectionKind
.
Indicates whether a parameter is being sent into or out of a behavioral element.
ParameterDirectionKind
,
setDirection(ParameterDirectionKind)
,
UMLPackage.getParameter_Direction()
void setDirection(ParameterDirectionKind value)
Direction
' attribute.
value
- the new value of the 'Direction' attribute.ParameterDirectionKind
,
getDirection()
String getDefault()
isSetDefault()
,
unsetDefault()
,
setDefault(String)
,
UMLPackage.getParameter_Default()
void setDefault(String value)
Default
' attribute.
value
- the new value of the 'Default' attribute.isSetDefault()
,
unsetDefault()
,
getDefault()
void unsetDefault()
Default
' attribute.
isSetDefault()
,
getDefault()
,
setDefault(String)
boolean isSetDefault()
Default
' attribute is set.
unsetDefault()
,
getDefault()
,
setDefault(String)
ValueSpecification getDefaultValue()
setDefaultValue(ValueSpecification)
,
UMLPackage.getParameter_DefaultValue()
void setDefaultValue(ValueSpecification value)
Default Value
' containment reference.
value
- the new value of the 'Default Value' containment reference.getDefaultValue()
ValueSpecification createDefaultValue(String name, Type type, EClass eClass)
ValueSpecification
, with the specified 'Name', and 'Type',
and sets the 'Default Value' containment reference.
name
- The 'Name' for the new ValueSpecification
, or null
.type
- The 'Type' for the new ValueSpecification
, or null
.eClass
- The Ecore class of the ValueSpecification
to create.ValueSpecification
.getDefaultValue()
boolean isException()
"false"
.
Tells whether an output parameter may emit a value to the exclusion of the other outputs.
setIsException(boolean)
,
UMLPackage.getParameter_IsException()
void setIsException(boolean value)
Is Exception
' attribute.
value
- the new value of the 'Is Exception' attribute.isException()
boolean isStream()
"false"
.
Tells whether an input parameter may accept values while its behavior is executing, or whether an output parameter post values while the
behavior is executing.
setIsStream(boolean)
,
UMLPackage.getParameter_IsStream()
void setIsStream(boolean value)
Is Stream
' attribute.
value
- the new value of the 'Is Stream' attribute.isStream()
ParameterEffectKind getEffect()
ParameterEffectKind
.
Specifies the effect that the owner of the parameter has on values passed in or out of the parameter.
ParameterEffectKind
,
isSetEffect()
,
unsetEffect()
,
setEffect(ParameterEffectKind)
,
UMLPackage.getParameter_Effect()
void setEffect(ParameterEffectKind value)
Effect
' attribute.
value
- the new value of the 'Effect' attribute.ParameterEffectKind
,
isSetEffect()
,
unsetEffect()
,
getEffect()
void unsetEffect()
Effect
' attribute.
isSetEffect()
,
getEffect()
,
setEffect(ParameterEffectKind)
boolean isSetEffect()
Effect
' attribute is set.
unsetEffect()
,
getEffect()
,
setEffect(ParameterEffectKind)
boolean validateConnectorEnd(DiagnosticChain diagnostics, Map context)
boolean validateStreamAndException(DiagnosticChain diagnostics, Map context)
boolean validateNotException(DiagnosticChain diagnostics, Map context)
boolean validateReentrantBehaviors(DiagnosticChain diagnostics, Map context)
boolean validateInAndOut(DiagnosticChain diagnostics, Map context)
void setBooleanDefaultValue(boolean value)
void setIntegerDefaultValue(int value)
void setStringDefaultValue(String value)
void setUnlimitedNaturalDefaultValue(int value)
void setNullDefaultValue()