Class ValueSpecification
ValueSpecification is an abstract metaclass used to identify a value or values in a model. It may reference an instance or it may be an expression denoting an instance or instances when evaluated. It adds a specialization to Constructs::TypedElement.
[AlternativeNamespace("http://schema.omg.org/spec/mof/2.0/emof.xmi")]
[XmlNamespace("http://schema.omg.org/spec/MOF/2.0/cmof.xml")]
[XmlNamespacePrefix("cmof")]
[ModelRepresentationClass("http://schema.omg.org/spec/MOF/2.0/cmof.xml#//ValueSpecification")]
public abstract class ValueSpecification : TypedElement, IValueSpecification, IPackageableElement, ITypedElement, INamedElement, IElement, 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
Methods
BooleanValue()
The query booleanValue() gives a single Boolean value when one can be computed. result = Set{}
public bool BooleanValue()
Returns
GetClass()
Gets the Class for this model element
public override IClass GetClass()
Returns
IntegerValue()
The query integerValue() gives a single Integer value when one can be computed. result = Set{}
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 value specifications 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 the value of all literals. result = false
public bool IsComputable()
Returns
IsNull()
The query isNull() returns true when it can be computed that the value is null. result = false
public bool IsNull()
Returns
StringValue()
The query stringValue() gives a single String value when one can be computed. result = Set{}
public string StringValue()
Returns
UnlimitedValue()
The query unlimitedValue() gives a single UnlimitedNatural value when one can be computed. result = Set{}
public int UnlimitedValue()