Class TypedElement
The default implementation of the TypedElement class
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/#//TypedElement")]
public abstract class TypedElement : MetaElement, ITypedElement, IMetaElement, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Properties
| Edit this page View SourceClassInstance
Gets the Class model for this type
Declaration
public static IClass ClassInstance { get; }
Property Value
Type | Description |
---|---|
IClass |
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 |
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 SourceType
The Type property
Declaration
[XmlAttribute(true)]
public IType Type { get; set; }
Property Value
Type | Description |
---|---|
IType |
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 SourceOnIsOrderedChanged(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 |
OnTypeChanged(ValueChangedEventArgs)
Raises the TypeChanged event
Declaration
protected virtual void OnTypeChanged(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnTypeChanging(ValueChangedEventArgs)
Raises the TypeChanging event
Declaration
protected virtual void OnTypeChanging(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 SourceIsOrderedChanged
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> |
TypeChanged
Gets fired when the Type property changed its value
Declaration
public event EventHandler<ValueChangedEventArgs> TypeChanged
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
TypeChanging
Gets fired before the Type property changes its value
Declaration
public event EventHandler<ValueChangedEventArgs> TypeChanging
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> |