Table of Contents

Class InheritanceRule

Namespace
NMF.AnyText.Metamodel
Assembly
NMF.AnyText.dll

The default implementation of the InheritanceRule class

[XmlNamespace("https://github.com/NMFCode/NMF/AnyText")]
[XmlNamespacePrefix("anytext")]
[ModelRepresentationClass("https://github.com/NMFCode/NMF/AnyText#//InheritanceRule")]
public class InheritanceRule : ClassRule, IInheritanceRule, IClassRule, IRule, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Inheritance
InheritanceRule
Implements
Inherited Members

Constructors

InheritanceRule()

Creates a new instance

public InheritanceRule()

Properties

ClassInstance

Gets the Class model for this type

public static IClass ClassInstance { get; }

Property Value

IClass

ReferencedElements

Gets the referenced model elements of this model element

public override IEnumerableExpression<IModelElement> ReferencedElements { get; }

Property Value

IEnumerableExpression<IModelElement>

Subtypes

The Subtypes property

[XmlAttribute(true)]
public IOrderedSetExpression<IClassRule> Subtypes { get; }

Property Value

IOrderedSetExpression<IClassRule>

Methods

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

GetModelElementForReference(string, int)

Resolves the given URI to a child model element

protected override IModelElement GetModelElementForReference(string reference, int index)

Parameters

reference string

The requested reference name

index int

The index of this reference

Returns

IModelElement

The model element or null if it could not be found