Class NotationElement
The default implementation of the NotationElement class
[XmlNamespace("http://www.eclipse.org/glsp/notation")]
[XmlNamespacePrefix("notation")]
[ModelRepresentationClass("http://www.eclipse.org/glsp/notation#//NotationElement")]
public abstract class NotationElement : ModelElement, INotationElement, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
- Inheritance
-
NotationElement
- Implements
- Derived
- Inherited Members
Properties
ClassInstance
Gets the Class model for this type
public static IClass ClassInstance { get; }
Property Value
Id
The id property
[XmlElementName("id")]
[XmlAttribute(true)]
public string Id { get; set; }
Property Value
ReferencedElements
Gets the referenced model elements of this model element
public override IEnumerableExpression<IModelElement> ReferencedElements { get; }
Property Value
SemanticElement
The semanticElement property
[XmlElementName("semanticElement")]
[XmlAttribute(true)]
public IModelElement SemanticElement { get; set; }
Property Value
Methods
GetAttributeValue(string, int)
Resolves the given attribute name
protected override object GetAttributeValue(string attribute, int index)
Parameters
Returns
- object
The attribute value or null if it could not be found
GetClass()
Gets the Class for this model element
public override IClass GetClass()
Returns
GetExpressionForAttribute(string)
Gets the property expression for the given attribute
protected override INotifyExpression<object> GetExpressionForAttribute(string attribute)
Parameters
attribute
stringThe requested attribute in upper case
Returns
- INotifyExpression<object>
An incremental property expression
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
OnIdChanged(ValueChangedEventArgs)
Raises the IdChanged event
protected virtual void OnIdChanged(ValueChangedEventArgs eventArgs)
Parameters
eventArgs
ValueChangedEventArgsThe event data
OnIdChanging(ValueChangedEventArgs)
Raises the IdChanging event
protected virtual void OnIdChanging(ValueChangedEventArgs eventArgs)
Parameters
eventArgs
ValueChangedEventArgsThe event data
OnSemanticElementChanged(ValueChangedEventArgs)
Raises the SemanticElementChanged event
protected virtual void OnSemanticElementChanged(ValueChangedEventArgs eventArgs)
Parameters
eventArgs
ValueChangedEventArgsThe event data
OnSemanticElementChanging(ValueChangedEventArgs)
Raises the SemanticElementChanging event
protected virtual void OnSemanticElementChanging(ValueChangedEventArgs eventArgs)
Parameters
eventArgs
ValueChangedEventArgsThe event data
SetFeature(string, object)
Sets a value to the given feature
protected override void SetFeature(string feature, object value)
Parameters
Events
IdChanged
Gets fired when the Id property changed its value
public event EventHandler<ValueChangedEventArgs> IdChanged
Event Type
IdChanging
Gets fired before the Id property changes its value
public event EventHandler<ValueChangedEventArgs> IdChanging
Event Type
SemanticElementChanged
Gets fired when the SemanticElement property changed its value
public event EventHandler<ValueChangedEventArgs> SemanticElementChanged
Event Type
SemanticElementChanging
Gets fired before the SemanticElement property changes its value
public event EventHandler<ValueChangedEventArgs> SemanticElementChanging