Class MethodConfiguration
The default implementation of the MethodConfiguration class
Inherited Members
Namespace: NMF.Expressions.IncrementalizationConfiguration
Assembly: NMF.Expressions.Configuration.dll
Syntax
[XmlNamespace("http://nmf.codeplex.com/incrementalizationConfig")]
[XmlNamespacePrefix("conf")]
[ModelRepresentationClass("http://nmf.codeplex.com/incrementalizationConfig#//MethodConfiguration/")]
public class MethodConfiguration : ModelElement, IMethodConfiguration, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Constructors
| Edit this page View SourceMethodConfiguration()
Creates a new instance
Declaration
public MethodConfiguration()
Properties
| Edit this page View SourceAllowedStrategies
The allowedStrategies property
Declaration
[LowerBound(1)]
[XmlElementName("allowedStrategies")]
[XmlAttribute(true)]
public virtual IListExpression<IncrementalizationStrategy> AllowedStrategies { get; }
Property Value
Type | Description |
---|---|
IListExpression<IncrementalizationStrategy> |
ClassInstance
Gets the Class model for this type
Declaration
public static IClass ClassInstance { get; }
Property Value
Type | Description |
---|---|
IClass |
MethodIdentifier
The methodIdentifier property
Declaration
[XmlElementName("methodIdentifier")]
[XmlAttribute(true)]
public virtual string MethodIdentifier { get; set; }
Property Value
Type | Description |
---|---|
string |
Strategy
The strategy property
Declaration
[XmlElementName("strategy")]
[XmlAttribute(true)]
public virtual IncrementalizationStrategy Strategy { get; set; }
Property Value
Type | Description |
---|---|
IncrementalizationStrategy |
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 SourceGetCollectionForFeature(string)
Gets the Model element collection for the given feature
Declaration
protected override IList GetCollectionForFeature(string feature)
Parameters
Type | Name | Description |
---|---|---|
string | feature | The requested feature |
Returns
Type | Description |
---|---|
IList | A non-generic list of elements |
Overrides
| Edit this page View SourceOnMethodIdentifierChanged(ValueChangedEventArgs)
Raises the MethodIdentifierChanged event
Declaration
protected virtual void OnMethodIdentifierChanged(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnMethodIdentifierChanging(ValueChangedEventArgs)
Raises the MethodIdentifierChanging event
Declaration
protected virtual void OnMethodIdentifierChanging(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnStrategyChanged(ValueChangedEventArgs)
Raises the StrategyChanged event
Declaration
protected virtual void OnStrategyChanged(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnStrategyChanging(ValueChangedEventArgs)
Raises the StrategyChanging event
Declaration
protected virtual void OnStrategyChanging(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 SourceMethodIdentifierChanged
Gets fired when the MethodIdentifier property changed its value
Declaration
public event EventHandler<ValueChangedEventArgs> MethodIdentifierChanged
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
MethodIdentifierChanging
Gets fired before the MethodIdentifier property changes its value
Declaration
public event EventHandler<ValueChangedEventArgs> MethodIdentifierChanging
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
StrategyChanged
Gets fired when the Strategy property changed its value
Declaration
public event EventHandler<ValueChangedEventArgs> StrategyChanged
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
StrategyChanging
Gets fired before the Strategy property changes its value
Declaration
public event EventHandler<ValueChangedEventArgs> StrategyChanging
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |