Class Reference
The default implementation of the Reference class
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/#//Reference")]
public class Reference : MetaElement, IReference, ITypedElement, IMetaElement, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Properties
| Edit this page View SourceAnchor
The least common anchestor of an instance and its referenced element, if statically known
Declaration
[XmlAttribute(true)]
public IClass Anchor { get; set; }
Property Value
Type | Description |
---|---|
IClass |
ClassInstance
Gets the Class model for this type
Declaration
public static IClass ClassInstance { get; }
Property Value
Type | Description |
---|---|
IClass |
DeclaringType
The DeclaringType property
Declaration
[Browsable(false)]
[XmlAttribute(true)]
[XmlOpposite("References")]
public IReferenceType DeclaringType { get; set; }
Property Value
Type | Description |
---|---|
IReferenceType |
IsContainment
The IsContainment property
Declaration
[XmlAttribute(true)]
[TypeConverter(typeof(LowercaseBooleanConverter))]
public bool IsContainment { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsOrdered
The IsOrdered property
Declaration
[XmlAttribute(true)]
[TypeConverter(typeof(LowercaseBooleanConverter))]
public bool IsOrdered { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsUnique
The IsUnique property
Declaration
[XmlAttribute(true)]
[TypeConverter(typeof(LowercaseBooleanConverter))]
public bool IsUnique { get; set; }
Property Value
Type | Description |
---|---|
bool |
LowerBound
The LowerBound property
Declaration
[XmlAttribute(true)]
public int LowerBound { get; set; }
Property Value
Type | Description |
---|---|
int |
Opposite
The Opposite property
Declaration
[XmlAttribute(true)]
[XmlOpposite("Opposite")]
public IReference Opposite { get; set; }
Property Value
Type | Description |
---|---|
IReference |
ReferenceType
The ReferenceType property
Declaration
[XmlAttribute(true)]
public IReferenceType ReferenceType { get; set; }
Property Value
Type | Description |
---|---|
IReferenceType |
ReferencedElements
Gets the referenced model elements of this model element
Declaration
public override IEnumerableExpression<IModelElement> ReferencedElements { get; }
Property Value
Type | Description |
---|---|
IEnumerableExpression<IModelElement> |
Overrides
| Edit this page View SourceRefines
The reference that is refined by the current reference, only applicable if the reference is part of a class
Declaration
[XmlAttribute(true)]
public IReference Refines { get; set; }
Property Value
Type | Description |
---|---|
IReference |
UpperBound
The UpperBound property
Declaration
[XmlAttribute(true)]
public int UpperBound { get; set; }
Property Value
Type | Description |
---|---|
int |
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 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 SourceOnAnchorChanged(ValueChangedEventArgs)
Raises the AnchorChanged event
Declaration
protected virtual void OnAnchorChanged(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnAnchorChanging(ValueChangedEventArgs)
Raises the AnchorChanging event
Declaration
protected virtual void OnAnchorChanging(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnDeclaringTypeChanged(ValueChangedEventArgs)
Raises the DeclaringTypeChanged event
Declaration
protected virtual void OnDeclaringTypeChanged(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnDeclaringTypeChanging(ValueChangedEventArgs)
Raises the DeclaringTypeChanging event
Declaration
protected virtual void OnDeclaringTypeChanging(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnIsContainmentChanged(ValueChangedEventArgs)
Raises the IsContainmentChanged event
Declaration
protected virtual void OnIsContainmentChanged(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnIsContainmentChanging(ValueChangedEventArgs)
Raises the IsContainmentChanging event
Declaration
protected virtual void OnIsContainmentChanging(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnIsOrderedChanged(ValueChangedEventArgs)
Raises the IsOrderedChanged event
Declaration
protected virtual void OnIsOrderedChanged(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnIsOrderedChanging(ValueChangedEventArgs)
Raises the IsOrderedChanging event
Declaration
protected virtual void OnIsOrderedChanging(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnIsUniqueChanged(ValueChangedEventArgs)
Raises the IsUniqueChanged event
Declaration
protected virtual void OnIsUniqueChanged(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnIsUniqueChanging(ValueChangedEventArgs)
Raises the IsUniqueChanging event
Declaration
protected virtual void OnIsUniqueChanging(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnLowerBoundChanged(ValueChangedEventArgs)
Raises the LowerBoundChanged event
Declaration
protected virtual void OnLowerBoundChanged(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnLowerBoundChanging(ValueChangedEventArgs)
Raises the LowerBoundChanging event
Declaration
protected virtual void OnLowerBoundChanging(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnOppositeChanged(ValueChangedEventArgs)
Raises the OppositeChanged event
Declaration
protected virtual void OnOppositeChanged(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnOppositeChanging(ValueChangedEventArgs)
Raises the OppositeChanging event
Declaration
protected virtual void OnOppositeChanging(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnParentChanged(IModelElement, IModelElement)
Gets called when the parent model element of the current model element changes
Declaration
protected override void OnParentChanged(IModelElement newParent, IModelElement oldParent)
Parameters
Type | Name | Description |
---|---|---|
IModelElement | newParent | The new parent model element |
IModelElement | oldParent | The old parent model element |
Overrides
| Edit this page View SourceOnParentChanging(IModelElement, IModelElement)
Gets called when the parent model element of the current model element is about to change
Declaration
protected override void OnParentChanging(IModelElement newParent, IModelElement oldParent)
Parameters
Type | Name | Description |
---|---|---|
IModelElement | newParent | The new parent model element |
IModelElement | oldParent | The old parent model element |
Overrides
| Edit this page View SourceOnReferenceTypeChanged(ValueChangedEventArgs)
Raises the ReferenceTypeChanged event
Declaration
protected virtual void OnReferenceTypeChanged(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnReferenceTypeChanging(ValueChangedEventArgs)
Raises the ReferenceTypeChanging event
Declaration
protected virtual void OnReferenceTypeChanging(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnRefinesChanged(ValueChangedEventArgs)
Raises the RefinesChanged event
Declaration
protected virtual void OnRefinesChanged(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnRefinesChanging(ValueChangedEventArgs)
Raises the RefinesChanging event
Declaration
protected virtual void OnRefinesChanging(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnUpperBoundChanged(ValueChangedEventArgs)
Raises the UpperBoundChanged event
Declaration
protected virtual void OnUpperBoundChanged(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnUpperBoundChanging(ValueChangedEventArgs)
Raises the UpperBoundChanging event
Declaration
protected virtual void OnUpperBoundChanging(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 SourceAnchorChanged
Gets fired when the Anchor property changed its value
Declaration
public event EventHandler<ValueChangedEventArgs> AnchorChanged
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
AnchorChanging
Gets fired before the Anchor property changes its value
Declaration
public event EventHandler<ValueChangedEventArgs> AnchorChanging
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
DeclaringTypeChanged
Gets fired when the DeclaringType property changed its value
Declaration
public event EventHandler<ValueChangedEventArgs> DeclaringTypeChanged
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
DeclaringTypeChanging
Gets fired before the DeclaringType property changes its value
Declaration
public event EventHandler<ValueChangedEventArgs> DeclaringTypeChanging
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
IsContainmentChanged
Gets fired when the IsContainment property changed its value
Declaration
public event EventHandler<ValueChangedEventArgs> IsContainmentChanged
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
IsContainmentChanging
Gets fired before the IsContainment property changes its value
Declaration
public event EventHandler<ValueChangedEventArgs> IsContainmentChanging
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
IsOrderedChanged
Gets fired when the IsOrdered property changed its value
Declaration
public event EventHandler<ValueChangedEventArgs> IsOrderedChanged
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
IsOrderedChanging
Gets fired before the IsOrdered property changes its value
Declaration
public event EventHandler<ValueChangedEventArgs> IsOrderedChanging
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
IsUniqueChanged
Gets fired when the IsUnique property changed its value
Declaration
public event EventHandler<ValueChangedEventArgs> IsUniqueChanged
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
IsUniqueChanging
Gets fired before the IsUnique property changes its value
Declaration
public event EventHandler<ValueChangedEventArgs> IsUniqueChanging
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
LowerBoundChanged
Gets fired when the LowerBound property changed its value
Declaration
public event EventHandler<ValueChangedEventArgs> LowerBoundChanged
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
LowerBoundChanging
Gets fired before the LowerBound property changes its value
Declaration
public event EventHandler<ValueChangedEventArgs> LowerBoundChanging
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
OppositeChanged
Gets fired when the Opposite property changed its value
Declaration
public event EventHandler<ValueChangedEventArgs> OppositeChanged
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
OppositeChanging
Gets fired before the Opposite property changes its value
Declaration
public event EventHandler<ValueChangedEventArgs> OppositeChanging
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
ReferenceTypeChanged
Gets fired when the ReferenceType property changed its value
Declaration
public event EventHandler<ValueChangedEventArgs> ReferenceTypeChanged
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
ReferenceTypeChanging
Gets fired before the ReferenceType property changes its value
Declaration
public event EventHandler<ValueChangedEventArgs> ReferenceTypeChanging
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
RefinesChanged
Gets fired when the Refines property changed its value
Declaration
public event EventHandler<ValueChangedEventArgs> RefinesChanged
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
RefinesChanging
Gets fired before the Refines property changes its value
Declaration
public event EventHandler<ValueChangedEventArgs> RefinesChanging
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
UpperBoundChanged
Gets fired when the UpperBound property changed its value
Declaration
public event EventHandler<ValueChangedEventArgs> UpperBoundChanged
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
UpperBoundChanging
Gets fired before the UpperBound property changes its value
Declaration
public event EventHandler<ValueChangedEventArgs> UpperBoundChanging
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |