Table of Contents

Class NotationElement

Namespace
NMF.Glsp.Notation
Assembly
NMF.Glsp.dll

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

IClass

Id

The id property

[XmlElementName("id")]
[XmlAttribute(true)]
public string Id { get; set; }

Property Value

string

ReferencedElements

Gets the referenced model elements of this model element

public override IEnumerableExpression<IModelElement> ReferencedElements { get; }

Property Value

IEnumerableExpression<IModelElement>

SemanticElement

The semanticElement property

[XmlElementName("semanticElement")]
[XmlAttribute(true)]
public IModelElement SemanticElement { get; set; }

Property Value

IModelElement

Methods

GetAttributeValue(string, int)

Resolves the given attribute name

protected override object GetAttributeValue(string attribute, int index)

Parameters

attribute string

The requested attribute name

index int

The index of this attribute

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

IClass

GetExpressionForAttribute(string)

Gets the property expression for the given attribute

protected override INotifyExpression<object> GetExpressionForAttribute(string attribute)

Parameters

attribute string

The 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 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

OnIdChanged(ValueChangedEventArgs)

Raises the IdChanged event

protected virtual void OnIdChanged(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnIdChanging(ValueChangedEventArgs)

Raises the IdChanging event

protected virtual void OnIdChanging(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnSemanticElementChanged(ValueChangedEventArgs)

Raises the SemanticElementChanged event

protected virtual void OnSemanticElementChanged(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnSemanticElementChanging(ValueChangedEventArgs)

Raises the SemanticElementChanging event

protected virtual void OnSemanticElementChanging(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

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

Events

IdChanged

Gets fired when the Id property changed its value

public event EventHandler<ValueChangedEventArgs> IdChanged

Event Type

EventHandler<ValueChangedEventArgs>

IdChanging

Gets fired before the Id property changes its value

public event EventHandler<ValueChangedEventArgs> IdChanging

Event Type

EventHandler<ValueChangedEventArgs>

SemanticElementChanged

Gets fired when the SemanticElement property changed its value

public event EventHandler<ValueChangedEventArgs> SemanticElementChanged

Event Type

EventHandler<ValueChangedEventArgs>

SemanticElementChanging

Gets fired before the SemanticElement property changes its value

public event EventHandler<ValueChangedEventArgs> SemanticElementChanging

Event Type

EventHandler<ValueChangedEventArgs>