Table of Contents

Interface IParameter

Namespace
NMF.Interop.Uml
Assembly
NMF.UMLInterop.dll

The public interface for Parameter

[DefaultImplementationType(typeof(Parameter))]
[XmlDefaultImplementationType(typeof(Parameter))]
[ModelRepresentationClass("http://www.eclipse.org/uml2/5.0.0/UML#//Parameter")]
public interface IParameter : IMultiplicityElement, IConnectableElement, IParameterableElement, ITypedElement, INamedElement, IElement, IEModelElement, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Inherited Members

Properties

DefaultValue

Specifies a ValueSpecification that represents a value to be used when no argument is supplied for the Parameter. <p>From package UML::Classification.</p>

[Browsable(false)]
[XmlElementName("defaultValue")]
[XmlAttribute(false)]
[Containment]
IValueSpecification DefaultValue { get; set; }

Property Value

IValueSpecification

Direction

Indicates whether a parameter is being sent into or out of a behavioral element. <p>From package UML::Classification.</p>

[XmlElementName("direction")]
[XmlAttribute(true)]
ParameterDirectionKind Direction { get; set; }

Property Value

ParameterDirectionKind

Effect

Specifies the effect that executions of the owner of the Parameter have on objects passed in or out of the parameter. <p>From package UML::Classification.</p>

[XmlElementName("effect")]
[XmlAttribute(true)]
ParameterEffectKind? Effect { get; set; }

Property Value

ParameterEffectKind?

IsException

Tells whether an output parameter may emit a value to the exclusion of the other outputs. <p>From package UML::Classification.</p>

[TypeConverter(typeof(LowercaseBooleanConverter))]
[XmlElementName("isException")]
[XmlAttribute(true)]
bool IsException { get; set; }

Property Value

bool

IsStream

Tells whether an input parameter may accept values while its behavior is executing, or whether an output parameter may post values while the behavior is executing. <p>From package UML::Classification.</p>

[TypeConverter(typeof(LowercaseBooleanConverter))]
[XmlElementName("isStream")]
[XmlAttribute(true)]
bool IsStream { get; set; }

Property Value

bool

Operation

The Operation owning this parameter. <p>From package UML::Classification.</p>

[XmlElementName("operation")]
[XmlAttribute(true)]
IOperation Operation { get; set; }

Property Value

IOperation

ParameterSet

The ParameterSets containing the parameter. See ParameterSet. <p>From package UML::Classification.</p>

[XmlElementName("parameterSet")]
[XmlAttribute(true)]
[XmlOpposite("parameter")]
ISetExpression<IParameterSet> ParameterSet { get; }

Property Value

ISetExpression<IParameterSet>

Methods

Connector_end(object, object)

A Parameter may only be associated with a Connector end within the context of a Collaboration. end->notEmpty() implies collaboration->notEmpty()

bool Connector_end(object diagnostics, object context)

Parameters

diagnostics object

The chain of diagnostics to which problems are to be appended.

context object

The cache of context-specific information.

Returns

bool

GetDefault()

Derivation for Parameter::/default result = (if self.type = String then defaultValue.stringValue() else null endif) <p>From package UML::Classification.</p>

string GetDefault()

Returns

string

In_and_out(object, object)

Only in and inout Parameters may have a delete effect. Only out, inout, and return Parameters may have a create effect. (effect = ParameterEffectKind::delete implies (direction = ParameterDirectionKind::_'in' or direction = ParameterDirectionKind::inout)) and (effect = ParameterEffectKind::create implies (direction = ParameterDirectionKind::out or direction = ParameterDirectionKind::inout or direction = ParameterDirectionKind::return))

bool In_and_out(object diagnostics, object context)

Parameters

diagnostics object

The chain of diagnostics to which problems are to be appended.

context object

The cache of context-specific information.

Returns

bool

IsSetDefault()

bool IsSetDefault()

Returns

bool

Not_exception(object, object)

An input Parameter cannot be an exception. isException implies (direction <> ParameterDirectionKind::_'in' and direction <> ParameterDirectionKind::inout)

bool Not_exception(object diagnostics, object context)

Parameters

diagnostics object

The chain of diagnostics to which problems are to be appended.

context object

The cache of context-specific information.

Returns

bool

Object_effect(object, object)

Parameters typed by DataTypes cannot have an effect. (type.oclIsKindOf(DataType)) implies (effect = null)

bool Object_effect(object diagnostics, object context)

Parameters

diagnostics object

The chain of diagnostics to which problems are to be appended.

context object

The cache of context-specific information.

Returns

bool

Reentrant_behaviors(object, object)

Reentrant behaviors cannot have stream Parameters. (isStream and behavior <> null) implies not behavior.isReentrant

bool Reentrant_behaviors(object diagnostics, object context)

Parameters

diagnostics object

The chain of diagnostics to which problems are to be appended.

context object

The cache of context-specific information.

Returns

bool

SetBooleanDefaultValue(bool)

Sets the default value for this parameter to the specified Boolean value.

void SetBooleanDefaultValue(bool value)

Parameters

value bool

The new default value.

SetDefault(string)

void SetDefault(string newDefault)

Parameters

newDefault string

SetIntegerDefaultValue(int)

Sets the default value for this parameter to the specified integer value.

void SetIntegerDefaultValue(int value)

Parameters

value int

The new default value.

SetNullDefaultValue()

Sets the default value for this parameter to the null value.

void SetNullDefaultValue()

SetRealDefaultValue(double)

Sets the default value for this parameter to the specified real value.

void SetRealDefaultValue(double value)

Parameters

value double

The new default value.

SetStringDefaultValue(string)

Sets the default value for this parameter to the specified string value.

void SetStringDefaultValue(string value)

Parameters

value string

The new default value.

SetUnlimitedNaturalDefaultValue(object)

Sets the default value for this parameter to the specified unlimited natural value.

void SetUnlimitedNaturalDefaultValue(object value)

Parameters

value object

The new default value.

Stream_and_exception(object, object)

A Parameter cannot be a stream and exception at the same time. not (isException and isStream)

bool Stream_and_exception(object diagnostics, object context)

Parameters

diagnostics object

The chain of diagnostics to which problems are to be appended.

context object

The cache of context-specific information.

Returns

bool

UnsetDefault()

void UnsetDefault()