Table of Contents

Class MethodConfiguration

Namespace
NMF.Expressions.IncrementalizationConfiguration
Assembly
NMF.Expressions.Configuration.dll

The default implementation of the MethodConfiguration class

[XmlNamespace("http://nmf.codeplex.com/incrementalizationConfig")]
[XmlNamespacePrefix("conf")]
[ModelRepresentationClass("http://nmf.codeplex.com/incrementalizationConfig#//MethodConfiguration/")]
public class MethodConfiguration : ModelElement, IMethodConfiguration, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Inheritance
MethodConfiguration
Implements
Inherited Members
Extension Methods

Constructors

MethodConfiguration()

Creates a new instance

public MethodConfiguration()

Properties

AllowedStrategies

The allowedStrategies property

[LowerBound(1)]
[XmlElementName("allowedStrategies")]
[XmlAttribute(true)]
public virtual IListExpression<IncrementalizationStrategy> AllowedStrategies { get; }

Property Value

IListExpression<IncrementalizationStrategy>

ClassInstance

Gets the Class model for this type

public static IClass ClassInstance { get; }

Property Value

IClass

MethodIdentifier

The methodIdentifier property

[XmlElementName("methodIdentifier")]
[XmlAttribute(true)]
public virtual string MethodIdentifier { get; set; }

Property Value

string

Strategy

The strategy property

[XmlElementName("strategy")]
[XmlAttribute(true)]
public virtual IncrementalizationStrategy Strategy { get; set; }

Property Value

IncrementalizationStrategy

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

GetCollectionForFeature(string)

Gets the Model element collection for the given feature

protected override IList GetCollectionForFeature(string feature)

Parameters

feature string

The requested feature

Returns

IList

A non-generic list of elements

OnMethodIdentifierChanged(ValueChangedEventArgs)

Raises the MethodIdentifierChanged event

protected virtual void OnMethodIdentifierChanged(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnMethodIdentifierChanging(ValueChangedEventArgs)

Raises the MethodIdentifierChanging event

protected virtual void OnMethodIdentifierChanging(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnStrategyChanged(ValueChangedEventArgs)

Raises the StrategyChanged event

protected virtual void OnStrategyChanged(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnStrategyChanging(ValueChangedEventArgs)

Raises the StrategyChanging event

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

MethodIdentifierChanged

Gets fired when the MethodIdentifier property changed its value

public event EventHandler<ValueChangedEventArgs> MethodIdentifierChanged

Event Type

EventHandler<ValueChangedEventArgs>

MethodIdentifierChanging

Gets fired before the MethodIdentifier property changes its value

public event EventHandler<ValueChangedEventArgs> MethodIdentifierChanging

Event Type

EventHandler<ValueChangedEventArgs>

StrategyChanged

Gets fired when the Strategy property changed its value

public event EventHandler<ValueChangedEventArgs> StrategyChanged

Event Type

EventHandler<ValueChangedEventArgs>

StrategyChanging

Gets fired before the Strategy property changes its value

public event EventHandler<ValueChangedEventArgs> StrategyChanging

Event Type

EventHandler<ValueChangedEventArgs>