Table of Contents

Class ProcessingInstruction

Namespace
NMF.Interop.Type
Assembly
NMF.EcoreInterop.dll

The default implementation of the ProcessingInstruction class

[XmlNamespace("http://www.eclipse.org/emf/2003/XMLType")]
[XmlNamespacePrefix("ecore.xml.type")]
[ModelRepresentationClass("http://www.eclipse.org/emf/2003/XMLType#//ProcessingInstruction")]
public class ProcessingInstruction : ModelElement, IProcessingInstruction, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Inheritance
ProcessingInstruction
Implements
Inherited Members

Properties

ClassInstance

Gets the Class model for this type

public static IClass ClassInstance { get; }

Property Value

IClass

Data

The data property

[XmlElementName("data")]
[XmlAttribute(true)]
public string Data { get; set; }

Property Value

string

Target

The target property

[XmlElementName("target")]
[XmlAttribute(true)]
public string Target { get; set; }

Property Value

string

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

OnDataChanged(ValueChangedEventArgs)

Raises the DataChanged event

protected virtual void OnDataChanged(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnDataChanging(ValueChangedEventArgs)

Raises the DataChanging event

protected virtual void OnDataChanging(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnTargetChanged(ValueChangedEventArgs)

Raises the TargetChanged event

protected virtual void OnTargetChanged(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnTargetChanging(ValueChangedEventArgs)

Raises the TargetChanging event

protected virtual void OnTargetChanging(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

DataChanged

Gets fired when the Data property changed its value

public event EventHandler<ValueChangedEventArgs> DataChanged

Event Type

EventHandler<ValueChangedEventArgs>

DataChanging

Gets fired before the Data property changes its value

public event EventHandler<ValueChangedEventArgs> DataChanging

Event Type

EventHandler<ValueChangedEventArgs>

TargetChanged

Gets fired when the Target property changed its value

public event EventHandler<ValueChangedEventArgs> TargetChanged

Event Type

EventHandler<ValueChangedEventArgs>

TargetChanging

Gets fired before the Target property changes its value

public event EventHandler<ValueChangedEventArgs> TargetChanging

Event Type

EventHandler<ValueChangedEventArgs>