Class Feature
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
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
Methods
GetAttributeValue(string, int)
Resolves the given attribute name
protected override object GetAttributeValue(string attribute, int index)
Parameters
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
GetExpressionForAttribute(string)
Gets the property expression for the given attribute
protected override INotifyExpression<object> GetExpressionForAttribute(string attribute)
Parameters
attributestringThe 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
eventArgsValueChangedEventArgsThe event data
OnIsStaticChanging(ValueChangedEventArgs)
Raises the IsStaticChanging event
protected virtual void OnIsStaticChanging(ValueChangedEventArgs eventArgs)
Parameters
eventArgsValueChangedEventArgsThe event data
SetFeature(string, object)
Sets a value to the given feature
protected override void SetFeature(string feature, object value)
Parameters
Events
IsStaticChanged
Gets fired when the IsStatic property changed its value
public event EventHandler<ValueChangedEventArgs> IsStaticChanged
Event Type
IsStaticChanging
Gets fired before the IsStatic property changes its value
public event EventHandler<ValueChangedEventArgs> IsStaticChanging