Class ValueSpecification
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
ClassInstance
Gets the Class model for this type
public static IClass ClassInstance { get; }
Property Value
Type
The type of the TypedElement. <p>From package UML::CommonStructure.</p>
[XmlElementName("type")]
[XmlAttribute(true)]
public IType Type { get; set; }
Property Value
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
GetClass()
Gets the Class for this model element
public override IClass GetClass()
Returns
GetExpressionForReference(string)
Gets the property expression for the given reference
protected override INotifyExpression<IModelElement> GetExpressionForReference(string reference)
Parameters
reference
stringThe 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
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
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
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
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
SetFeature(string, object)
Sets a value to the given feature
protected override void SetFeature(string feature, object value)
Parameters
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
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()