Class Class
Represents a group of instances with common properties like attributes or references
Implements
Inherited Members
Namespace: NMF.Models.Meta
Assembly: NMF.Models.dll
Syntax
[XmlNamespace("http://nmf.codeplex.com/nmeta/")]
[XmlNamespacePrefix("nmeta")]
[ModelRepresentationClass("http://nmf.codeplex.com/nmeta/#//Class")]
public class Class : ReferenceType, IClass, IReferenceType, IStructuredType, IType, IMetaElement, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Constructors
| Edit this page View SourceClass()
Declaration
public Class()
Properties
| Edit this page View SourceAttributeConstraints
The AttributeConstraints property
Declaration
[Browsable(false)]
[XmlAttribute(false)]
[Containment]
[XmlOpposite("DeclaringType")]
public ICollectionExpression<IAttributeConstraint> AttributeConstraints { get; }
Property Value
Type | Description |
---|---|
ICollectionExpression<IAttributeConstraint> |
BaseTypes
The BaseTypes property
Declaration
[XmlAttribute(true)]
public ICollectionExpression<IClass> BaseTypes { get; }
Property Value
Type | Description |
---|---|
ICollectionExpression<IClass> |
Children
Gets the child model elements of this model element
Declaration
public override IEnumerableExpression<IModelElement> Children { get; }
Property Value
Type | Description |
---|---|
IEnumerableExpression<IModelElement> |
Overrides
| Edit this page View SourceClassInstance
Gets the Class model for this type
Declaration
public static IClass ClassInstance { get; }
Property Value
Type | Description |
---|---|
IClass |
Identifier
Gets or sets the attribute that will identify instances of this class
Declaration
[XmlAttribute(true)]
public IAttribute Identifier { get; set; }
Property Value
Type | Description |
---|---|
IAttribute |
IdentifierScope
Specifies whether the identifier is valid only in the scope of its container or on a global scope.
Declaration
[XmlAttribute(true)]
public IdentifierScope IdentifierScope { get; set; }
Property Value
Type | Description |
---|---|
IdentifierScope |
Remarks
This attribute is ignored when this class is not identified.
InstanceOf
The InstanceOf property
Declaration
[XmlAttribute(true)]
public IClass InstanceOf { get; set; }
Property Value
Type | Description |
---|---|
IClass |
IsAbstract
The IsAbstract property
Declaration
[XmlAttribute(true)]
[TypeConverter(typeof(LowercaseBooleanConverter))]
public bool IsAbstract { get; set; }
Property Value
Type | Description |
---|---|
bool |
ReferenceConstraints
The ReferenceConstraints property
Declaration
[Browsable(false)]
[XmlAttribute(false)]
[Containment]
[XmlOpposite("DeclaringType")]
public ICollectionExpression<IReferenceConstraint> ReferenceConstraints { get; }
Property Value
Type | Description |
---|---|
ICollectionExpression<IReferenceConstraint> |
ReferencedElements
Gets the referenced model elements of this model element
Declaration
public override IEnumerableExpression<IModelElement> ReferencedElements { get; }
Property Value
Type | Description |
---|---|
IEnumerableExpression<IModelElement> |
Overrides
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 SourceGetCompositionName(object)
Gets the property name for the given container
Declaration
protected override string GetCompositionName(object container)
Parameters
Type | Name | Description |
---|---|---|
object | container | The container object |
Returns
Type | Description |
---|---|
string | The name of the respective container reference |
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 SourceGetExpressionForReference(string)
Gets the property expression for the given reference
Declaration
protected override INotifyExpression<IModelElement> GetExpressionForReference(string reference)
Parameters
Type | Name | Description |
---|---|---|
string | reference | The requested reference in upper case |
Returns
Type | Description |
---|---|
INotifyExpression<IModelElement> | An incremental property expression |
Overrides
| Edit this page View SourceGetModelElementForReference(string, int)
Resolves the given URI to a child model element
Declaration
protected override IModelElement GetModelElementForReference(string reference, int index)
Parameters
Type | Name | Description |
---|---|---|
string | reference | The requested reference name |
int | index | The index of this reference |
Returns
Type | Description |
---|---|
IModelElement | The model element or null if it could not be found |
Overrides
| Edit this page View SourceOnIdentifierChanged(ValueChangedEventArgs)
Raises the IdentifierChanged event
Declaration
protected virtual void OnIdentifierChanged(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnIdentifierChanging(ValueChangedEventArgs)
Raises the IdentifierChanging event
Declaration
protected virtual void OnIdentifierChanging(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnIdentifierScopeChanged(ValueChangedEventArgs)
Raises the IdentifierScopeChanged event
Declaration
protected virtual void OnIdentifierScopeChanged(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnIdentifierScopeChanging(ValueChangedEventArgs)
Raises the IdentifierScopeChanging event
Declaration
protected virtual void OnIdentifierScopeChanging(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnInstanceOfChanged(ValueChangedEventArgs)
Raises the InstanceOfChanged event
Declaration
protected virtual void OnInstanceOfChanged(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnInstanceOfChanging(ValueChangedEventArgs)
Raises the InstanceOfChanging event
Declaration
protected virtual void OnInstanceOfChanging(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnIsAbstractChanged(ValueChangedEventArgs)
Raises the IsAbstractChanged event
Declaration
protected virtual void OnIsAbstractChanged(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnIsAbstractChanging(ValueChangedEventArgs)
Raises the IsAbstractChanging event
Declaration
protected virtual void OnIsAbstractChanging(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 SourceIdentifierChanged
Gets fired when the Identifier property changed its value
Declaration
public event EventHandler<ValueChangedEventArgs> IdentifierChanged
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
IdentifierChanging
Gets fired before the Identifier property changes its value
Declaration
public event EventHandler<ValueChangedEventArgs> IdentifierChanging
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
IdentifierScopeChanged
Gets fired when the IdentifierScope property changed its value
Declaration
public event EventHandler<ValueChangedEventArgs> IdentifierScopeChanged
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
IdentifierScopeChanging
Gets fired before the IdentifierScope property changes its value
Declaration
public event EventHandler<ValueChangedEventArgs> IdentifierScopeChanging
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
InstanceOfChanged
Gets fired when the InstanceOf property changed its value
Declaration
public event EventHandler<ValueChangedEventArgs> InstanceOfChanged
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
InstanceOfChanging
Gets fired before the InstanceOf property changes its value
Declaration
public event EventHandler<ValueChangedEventArgs> InstanceOfChanging
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
IsAbstractChanged
Gets fired when the IsAbstract property changed its value
Declaration
public event EventHandler<ValueChangedEventArgs> IsAbstractChanged
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
IsAbstractChanging
Gets fired before the IsAbstract property changes its value
Declaration
public event EventHandler<ValueChangedEventArgs> IsAbstractChanging
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |