Class InheritanceRule
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
ReferencedElements
Gets the referenced model elements of this model element
public override IEnumerableExpression<IModelElement> ReferencedElements { get; }
Property Value
Subtypes
The Subtypes property
[XmlAttribute(true)]
public IOrderedSetExpression<IClassRule> Subtypes { get; }
Property Value
Methods
GetClass()
Gets the Class for this model element
public override IClass GetClass()
Returns
GetCollectionForFeature(string)
Gets the Model element collection for the given feature
protected override IList GetCollectionForFeature(string feature)
Parameters
feature
stringThe 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
Returns
- IModelElement
The model element or null if it could not be found