Package com.sodius.mdw.metamodel.uml21
Interface Parameter
-
- All Superinterfaces:
Comparable<Object>,ConnectableElement,Element,org.eclipse.emf.ecore.EModelElement,org.eclipse.emf.ecore.EObject,MDWEObject,MDWObject,MultiplicityElement,NamedElement,org.eclipse.emf.common.notify.Notifier,ParameterableElement,TypedElement
public interface Parameter extends ConnectableElement, MultiplicityElement
A representation of the model object 'Parameter'. A parameter is a specification of an argument used to pass information into or out of an invocation of a behavioral feature. Parameters are allowed to be treated as connectable elements. Parameters have support for streaming, exceptions, and parameter sets.The following features are supported:
- See Also:
UMLPackage.getParameter()
-
-
Field Summary
-
Fields inherited from interface com.sodius.mdw.metamodel.uml21.NamedElement
SEPARATOR
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ValueSpecificationcreateDefaultValue(String name, Type type, org.eclipse.emf.ecore.EClass eClass)Creates a newValueSpecification, with the specified 'Name', and 'Type', and sets the 'Default Value' containment reference.StringgetDefault()Returns the value of the 'Default' attribute.ValueSpecificationgetDefaultValue()Returns the value of the 'Default Value' containment reference.ParameterDirectionKindgetDirection()Returns the value of the 'Direction' attribute.ParameterEffectKindgetEffect()Returns the value of the 'Effect' attribute.OperationgetOperation()Returns the value of the 'Operation' reference.ParameterSetgetParameterSet(String name)Retrieves the firstParameterSetwith the specified 'Name' from the ' Parameter Set' reference list.ParameterSetgetParameterSet(String name, boolean ignoreCase)Retrieves the firstParameterSetwith the specified 'Name' from the ' Parameter Set' reference list.MDWEList<ParameterSet>getParameterSets()Returns the value of the 'Parameter Set' reference list.booleanisException()Returns the value of the 'Is Exception' attribute.booleanisSetDefault()Returns whether the value of the 'Default' attribute is set.booleanisSetEffect()Returns whether the value of the 'Effect' attribute is set.booleanisStream()Returns the value of the 'Is Stream' attribute.voidsetBooleanDefaultValue(boolean value)Sets the default value for this parameter to the specified Boolean value.voidsetDefault(String value)Sets the value of the 'Default' attribute.voidsetDefaultValue(ValueSpecification value)Sets the value of the 'Default Value' containment reference.voidsetDirection(ParameterDirectionKind value)Sets the value of the 'Direction' attribute.voidsetEffect(ParameterEffectKind value)Sets the value of the 'Effect' attribute.voidsetIntegerDefaultValue(int value)Sets the default value for this parameter to the specified integer value.voidsetIsException(boolean value)Sets the value of the 'Is Exception' attribute.voidsetIsStream(boolean value)Sets the value of the 'Is Stream' attribute.voidsetNullDefaultValue()Sets the default value for this parameter to the null value.voidsetStringDefaultValue(String value)Sets the default value for this parameter to the specified string value.voidsetUnlimitedNaturalDefaultValue(int value)Sets the default value for this parameter to the specified unlimited natural value.voidunsetDefault()Unsets the value of the 'Default' attribute.voidunsetEffect()Unsets the value of the 'Effect' attribute.booleanvalidateConnectorEnd(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)A parameter may only be associated with a connector end within the context of a collaboration.booleanvalidateInAndOut(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)Only in and inout parameters may have a delete effect.booleanvalidateNotException(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)An input parameter cannot be an exception.booleanvalidateReentrantBehaviors(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)Reentrant behaviors cannot have stream parameters.booleanvalidateStreamAndException(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)A parameter cannot be a stream and exception at the same time.-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.ConnectableElement
getEnds
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Element
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
-
Methods inherited from interface org.eclipse.emf.ecore.EModelElement
getEAnnotation, getEAnnotations
-
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
-
Methods inherited from interface com.sodius.mdw.core.model.MDWObject
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
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.MultiplicityElement
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
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.NamedElement
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
-
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.ParameterableElement
getOwningTemplateParameter, getTemplateParameter, isCompatibleWith, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.TypedElement
getType, setType
-
-
-
-
Method Detail
-
getParameterSets
MDWEList<ParameterSet> getParameterSets()
Returns the value of the 'Parameter Set' reference list. The list contents are of typeParameterSet. It is bidirectional and its opposite is 'Parameter'. The parameter sets containing the parameter. See ParameterSet.- Returns:
- the value of the 'Parameter Set' reference list.
- See Also:
UMLPackage.getParameter_ParameterSet(),ParameterSet.getParameters()
-
getParameterSet
ParameterSet getParameterSet(String name)
Retrieves the firstParameterSetwith the specified 'Name' from the ' Parameter Set' reference list.- Parameters:
name- The 'Name' of theParameterSetto retrieve, ornull.- Returns:
- The first
ParameterSetwith the specified 'Name', ornull. - See Also:
getParameterSets()
-
getParameterSet
ParameterSet getParameterSet(String name, boolean ignoreCase)
Retrieves the firstParameterSetwith the specified 'Name' from the ' Parameter Set' reference list.- Parameters:
name- The 'Name' of theParameterSetto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.- Returns:
- The first
ParameterSetwith the specified 'Name', ornull. - See Also:
getParameterSets()
-
getOperation
Operation getOperation()
Returns the value of the 'Operation' reference. References the Operation owning this parameter.- Returns:
- the value of the 'Operation' reference.
- See Also:
UMLPackage.getParameter_Operation()
-
getDirection
ParameterDirectionKind getDirection()
Returns the value of the 'Direction' attribute. The default value is"in". The literals are from the enumerationParameterDirectionKind. Indicates whether a parameter is being sent into or out of a behavioral element.- Returns:
- the value of the 'Direction' attribute.
- See Also:
ParameterDirectionKind,setDirection(ParameterDirectionKind),UMLPackage.getParameter_Direction()
-
setDirection
void setDirection(ParameterDirectionKind value)
Sets the value of the 'Direction' attribute.- Parameters:
value- the new value of the 'Direction' attribute.- See Also:
ParameterDirectionKind,getDirection()
-
getDefault
String getDefault()
Returns the value of the 'Default' attribute. Specifies a String that represents a value to be used when no argument is supplied for the Parameter.- Returns:
- the value of the 'Default' attribute.
- See Also:
isSetDefault(),unsetDefault(),setDefault(String),UMLPackage.getParameter_Default()
-
setDefault
void setDefault(String value)
Sets the value of the 'Default' attribute.- Parameters:
value- the new value of the 'Default' attribute.- See Also:
isSetDefault(),unsetDefault(),getDefault()
-
unsetDefault
void unsetDefault()
Unsets the value of the 'Default' attribute.- See Also:
isSetDefault(),getDefault(),setDefault(String)
-
isSetDefault
boolean isSetDefault()
Returns whether the value of the 'Default' attribute is set.- Returns:
- whether the value of the 'Default' attribute is set.
- See Also:
unsetDefault(),getDefault(),setDefault(String)
-
getDefaultValue
ValueSpecification getDefaultValue()
Returns the value of the 'Default Value' containment reference. Specifies a ValueSpecification that represents a value to be used when no argument is supplied for the Parameter.- Returns:
- the value of the 'Default Value' containment reference.
- See Also:
setDefaultValue(ValueSpecification),UMLPackage.getParameter_DefaultValue()
-
setDefaultValue
void setDefaultValue(ValueSpecification value)
Sets the value of the 'Default Value' containment reference.- Parameters:
value- the new value of the 'Default Value' containment reference.- See Also:
getDefaultValue()
-
createDefaultValue
ValueSpecification createDefaultValue(String name, Type type, org.eclipse.emf.ecore.EClass eClass)
Creates a newValueSpecification, with the specified 'Name', and 'Type', and sets the 'Default Value' containment reference.- Parameters:
name- The 'Name' for the newValueSpecification, ornull.type- The 'Type' for the newValueSpecification, ornull.eClass- The Ecore class of theValueSpecificationto create.- Returns:
- The new
ValueSpecification. - See Also:
getDefaultValue()
-
isException
boolean isException()
Returns the value of the 'Is Exception' attribute. The default value is"false". Tells whether an output parameter may emit a value to the exclusion of the other outputs.- Returns:
- the value of the 'Is Exception' attribute.
- See Also:
setIsException(boolean),UMLPackage.getParameter_IsException()
-
setIsException
void setIsException(boolean value)
Sets the value of the 'Is Exception' attribute.- Parameters:
value- the new value of the 'Is Exception' attribute.- See Also:
isException()
-
isStream
boolean isStream()
Returns the value of the 'Is Stream' attribute. The default value is"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.- Returns:
- the value of the 'Is Stream' attribute.
- See Also:
setIsStream(boolean),UMLPackage.getParameter_IsStream()
-
setIsStream
void setIsStream(boolean value)
Sets the value of the 'Is Stream' attribute.- Parameters:
value- the new value of the 'Is Stream' attribute.- See Also:
isStream()
-
getEffect
ParameterEffectKind getEffect()
Returns the value of the 'Effect' attribute. The literals are from the enumerationParameterEffectKind. Specifies the effect that the owner of the parameter has on values passed in or out of the parameter.- Returns:
- the value of the 'Effect' attribute.
- See Also:
ParameterEffectKind,isSetEffect(),unsetEffect(),setEffect(ParameterEffectKind),UMLPackage.getParameter_Effect()
-
setEffect
void setEffect(ParameterEffectKind value)
Sets the value of the 'Effect' attribute.- Parameters:
value- the new value of the 'Effect' attribute.- See Also:
ParameterEffectKind,isSetEffect(),unsetEffect(),getEffect()
-
unsetEffect
void unsetEffect()
Unsets the value of the 'Effect' attribute.- See Also:
isSetEffect(),getEffect(),setEffect(ParameterEffectKind)
-
isSetEffect
boolean isSetEffect()
Returns whether the value of the 'Effect' attribute is set.- Returns:
- whether the value of the 'Effect' attribute is set.
- See Also:
unsetEffect(),getEffect(),setEffect(ParameterEffectKind)
-
validateConnectorEnd
boolean validateConnectorEnd(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)A parameter may only be associated with a connector end within the context of a collaboration. self.end.notEmpty() implies self.collaboration.notEmpty()
-
validateStreamAndException
boolean validateStreamAndException(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)A parameter cannot be a stream and exception at the same time. true
-
validateNotException
boolean validateNotException(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)An input parameter cannot be an exception. true
-
validateReentrantBehaviors
boolean validateReentrantBehaviors(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)Reentrant behaviors cannot have stream parameters. true
-
validateInAndOut
boolean validateInAndOut(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)Only in and inout parameters may have a delete effect. Only out, inout, and return parameters may have a create effect. true
-
setBooleanDefaultValue
void setBooleanDefaultValue(boolean value)
Sets the default value for this parameter to the specified Boolean value.
-
setIntegerDefaultValue
void setIntegerDefaultValue(int value)
Sets the default value for this parameter to the specified integer value.
-
setStringDefaultValue
void setStringDefaultValue(String value)
Sets the default value for this parameter to the specified string value.
-
setUnlimitedNaturalDefaultValue
void setUnlimitedNaturalDefaultValue(int value)
Sets the default value for this parameter to the specified unlimited natural value.
-
setNullDefaultValue
void setNullDefaultValue()
Sets the default value for this parameter to the null value.
-
-