Class TypedElement
A typed element is a kind of named element that represents an element with a type. A typed element has a type.
[XmlNamespace("http://www.omg.org/spec/MOF/20131001/cmof.xmi")]
[XmlNamespacePrefix("cmof")]
[ModelRepresentationClass("http://www.omg.org/spec/MOF/20131001/cmof.xmi#//TypedElement")]
public abstract class TypedElement : NamedElement, ITypedElement, INamedElement, IElement, IObject, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
- Inheritance
-
TypedElement
- Implements
- Derived
- Inherited Members
Properties
ClassInstance
Gets the Class model for this type
public static IClass ClassInstance { get; }
Property Value
ReferencedElements
Gets the referenced model elements of this model element
public override IEnumerableExpression<IModelElement> ReferencedElements { get; }
Property Value
Type
This information is derived from the return result for this Operation. The type of the TypedElement.
[XmlElementName("type")]
[XmlAttribute(true)]
public IType Type { get; set; }
Property Value
Methods
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
referencestringThe 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
OnTypeChanged(ValueChangedEventArgs)
Raises the TypeChanged event
protected virtual void OnTypeChanged(ValueChangedEventArgs eventArgs)
Parameters
eventArgsValueChangedEventArgsThe event data
OnTypeChanging(ValueChangedEventArgs)
Raises the TypeChanging event
protected virtual void OnTypeChanging(ValueChangedEventArgs eventArgs)
Parameters
eventArgsValueChangedEventArgsThe event data
SetFeature(string, object)
Sets a value to the given feature
protected override void SetFeature(string feature, object value)
Parameters
Events
TypeChanged
Gets fired when the Type property changed its value
public event EventHandler<ValueChangedEventArgs> TypeChanged
Event Type
TypeChanging
Gets fired before the Type property changes its value
public event EventHandler<ValueChangedEventArgs> TypeChanging