Table of Contents

Class ValueSpecification

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

A ValueSpecification is the specification of a (possibly empty) set of values. A ValueSpecification is a ParameterableElement that may be exposed as a formal TemplateParameter and provided as the actual parameter in the binding of a template. <p>From package UML::Values.</p>

[XmlNamespace("http://www.eclipse.org/uml2/5.0.0/UML")]
[XmlNamespacePrefix("uml")]
[ModelRepresentationClass("http://www.eclipse.org/uml2/5.0.0/UML#//ValueSpecification")]
public abstract class ValueSpecification : PackageableElement, IValueSpecification, ITypedElement, IPackageableElement, IParameterableElement, INamedElement, IElement, IEModelElement, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Inheritance
ValueSpecification
Implements
Derived
Inherited Members

Properties

Children

Gets the child model elements of this model element

public override IEnumerableExpression<IModelElement> Children { get; }

Property Value

IEnumerableExpression<IModelElement>

ClassInstance

Gets the Class model for this type

public static IClass ClassInstance { get; }

Property Value

IClass

Type

The type of the TypedElement. <p>From package UML::CommonStructure.</p>

[XmlElementName("type")]
[XmlAttribute(true)]
public IType Type { get; set; }

Property Value

IType

Methods

BooleanValue()

The query booleanValue() gives a single Boolean value when one can be computed. result = (null) <p>From package UML::Values.</p>

public bool BooleanValue()

Returns

bool

GetClass()

Gets the Class for this model element

public override IClass GetClass()

Returns

IClass

GetExpressionForReference(string)

Gets the property expression for the given reference

protected override INotifyExpression<IModelElement> GetExpressionForReference(string reference)

Parameters

reference string

The requested reference in upper case

Returns

INotifyExpression<IModelElement>

An incremental property expression

GetModelElementForReference(string, int)

Resolves the given URI to a child model element

protected override IModelElement GetModelElementForReference(string reference, int index)

Parameters

reference string

The requested reference name

index int

The index of this reference

Returns

IModelElement

The model element or null if it could not be found

IntegerValue()

The query integerValue() gives a single Integer value when one can be computed. result = (null) <p>From package UML::Values.</p>

public int IntegerValue()

Returns

int

IsComputable()

The query isComputable() determines whether a value specification can be computed in a model. This operation cannot be fully defined in OCL. A conforming implementation is expected to deliver true for this operation for all ValueSpecifications that it can compute, and to compute all of those for which the operation is true. A conforming implementation is expected to be able to compute at least the value of all LiteralSpecifications. result = (false) <p>From package UML::Values.</p>

public bool IsComputable()

Returns

bool

IsNull()

The query isNull() returns true when it can be computed that the value is null. result = (false) <p>From package UML::Values.</p>

public bool IsNull()

Returns

bool

RealValue()

The query realValue() gives a single Real value when one can be computed. result = (null) <p>From package UML::Values.</p>

public double RealValue()

Returns

double

SetFeature(string, object)

Sets a value to the given feature

protected override void SetFeature(string feature, object value)

Parameters

feature string

The requested feature

value object

The value that should be set to that feature

StringValue()

The query stringValue() gives a single String value when one can be computed. result = (null) <p>From package UML::Values.</p>

public string StringValue()

Returns

string

UnlimitedValue()

The query unlimitedValue() gives a single UnlimitedNatural value when one can be computed. result = (null) <p>From package UML::Values.</p>

public void UnlimitedValue()