Class ProcessingInstruction
The default implementation of the ProcessingInstruction class
Inherited Members
Namespace: NMF.Interop.Type
Assembly: NMF.EcoreInterop.dll
Syntax
[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
Properties
| Edit this page View SourceClassInstance
Gets the Class model for this type
Declaration
public static IClass ClassInstance { get; }
Property Value
Type | Description |
---|---|
IClass |
Data
The data property
Declaration
[XmlElementName("data")]
[XmlAttribute(true)]
public string Data { get; set; }
Property Value
Type | Description |
---|---|
string |
Target
The target property
Declaration
[XmlElementName("target")]
[XmlAttribute(true)]
public string Target { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
| Edit this page View SourceGetAttributeValue(string, int)
Resolves the given attribute name
Declaration
protected override object GetAttributeValue(string attribute, int index)
Parameters
Type | Name | Description |
---|---|---|
string | attribute | The requested attribute name |
int | index | The index of this attribute |
Returns
Type | Description |
---|---|
object | The attribute value or null if it could not be found |
Overrides
| Edit this page View SourceGetClass()
Gets the Class for this model element
Declaration
public override IClass GetClass()
Returns
Type | Description |
---|---|
IClass |
Overrides
| Edit this page View SourceGetExpressionForAttribute(string)
Gets the property expression for the given attribute
Declaration
protected override INotifyExpression<object> GetExpressionForAttribute(string attribute)
Parameters
Type | Name | Description |
---|---|---|
string | attribute | The requested attribute in upper case |
Returns
Type | Description |
---|---|
INotifyExpression<object> | An incremental property expression |
Overrides
| Edit this page View SourceOnDataChanged(ValueChangedEventArgs)
Raises the DataChanged event
Declaration
protected virtual void OnDataChanged(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnDataChanging(ValueChangedEventArgs)
Raises the DataChanging event
Declaration
protected virtual void OnDataChanging(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnTargetChanged(ValueChangedEventArgs)
Raises the TargetChanged event
Declaration
protected virtual void OnTargetChanged(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnTargetChanging(ValueChangedEventArgs)
Raises the TargetChanging event
Declaration
protected virtual void OnTargetChanging(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
SetFeature(string, object)
Sets a value to the given feature
Declaration
protected override void SetFeature(string feature, object value)
Parameters
Type | Name | Description |
---|---|---|
string | feature | The requested feature |
object | value | The value that should be set to that feature |
Overrides
Events
| Edit this page View SourceDataChanged
Gets fired when the Data property changed its value
Declaration
public event EventHandler<ValueChangedEventArgs> DataChanged
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
DataChanging
Gets fired before the Data property changes its value
Declaration
public event EventHandler<ValueChangedEventArgs> DataChanging
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
TargetChanged
Gets fired when the Target property changed its value
Declaration
public event EventHandler<ValueChangedEventArgs> TargetChanged
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
TargetChanging
Gets fired before the Target property changes its value
Declaration
public event EventHandler<ValueChangedEventArgs> TargetChanging
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |