Table of Contents

Class Feature

Namespace
NMF.Interop.Cmof
Assembly
NMF.UMLInterop.dll

A feature declares a behavioral or structural characteristic of instances of classifiers.

[XmlNamespace("http://www.omg.org/spec/MOF/20131001/cmof.xmi")]
[XmlNamespacePrefix("cmof")]
[ModelRepresentationClass("http://www.omg.org/spec/MOF/20131001/cmof.xmi#//Feature")]
public abstract class Feature : RedefinableElement, IFeature, IRedefinableElement, INamedElement, IElement, IObject, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Inheritance
Feature
Implements
Derived
Inherited Members

Properties

ClassInstance

Gets the Class model for this type

public static IClass ClassInstance { get; }

Property Value

IClass

IsStatic

Specifies whether this feature characterizes individual instances classified by the classifier (false) or the classifier itself (true).

[TypeConverter(typeof(LowercaseBooleanConverter))]
[XmlElementName("isStatic")]
[XmlAttribute(true)]
public bool IsStatic { get; set; }

Property Value

bool

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

OnIsStaticChanged(ValueChangedEventArgs)

Raises the IsStaticChanged event

protected virtual void OnIsStaticChanged(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnIsStaticChanging(ValueChangedEventArgs)

Raises the IsStaticChanging event

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

IsStaticChanged

Gets fired when the IsStatic property changed its value

public event EventHandler<ValueChangedEventArgs> IsStaticChanged

Event Type

EventHandler<ValueChangedEventArgs>

IsStaticChanging

Gets fired before the IsStatic property changes its value

public event EventHandler<ValueChangedEventArgs> IsStaticChanging

Event Type

EventHandler<ValueChangedEventArgs>