Table of Contents

Class Type

Namespace
NMF.Interop.Uml
Assembly
NMF.UMLInterop.dll

A Type constrains the values represented by a TypedElement. <p>From package UML::CommonStructure.</p>

[XmlNamespace("http://www.eclipse.org/uml2/5.0.0/UML")]
[XmlNamespacePrefix("uml")]
[ModelRepresentationClass("http://www.eclipse.org/uml2/5.0.0/UML#//Type")]
public abstract class Type : PackageableElement, IType, IPackageableElement, IParameterableElement, INamedElement, IElement, IEModelElement, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Inheritance
Type
Implements
Inherited Members

Properties

ClassInstance

Gets the Class model for this type

public static IClass ClassInstance { get; }

Property Value

IClass

Package

Specifies the owning Package of this Type, if any. <p>From package UML::CommonStructure.</p>

[Browsable(false)]
[XmlElementName("package")]
[XmlAttribute(true)]
[XmlOpposite("ownedType")]
public IPackage Package { get; set; }

Property Value

IPackage

ReferencedElements

Gets the referenced model elements of this model element

public override IEnumerableExpression<IModelElement> ReferencedElements { get; }

Property Value

IEnumerableExpression<IModelElement>

Methods

ConformsTo(IType)

The query conformsTo() gives true for a Type that conforms to another. By default, two Types do not conform to each other. This query is intended to be redefined for specific conformance situations. result = (false) <p>From package UML::CommonStructure.</p>

public bool ConformsTo(IType other)

Parameters

other IType

Returns

bool

CreateAssociation(bool, AggregationKind, string, int, object, IType, bool, AggregationKind, string, int, object)

Creates a(n) (binary) association between this type and the specified other type, with the specified navigabilities, aggregations, names, lower bounds, and upper bounds, and owned by this type's nearest package.

public IAssociation CreateAssociation(bool end1IsNavigable, AggregationKind end1Aggregation, string end1Name, int end1Lower, object end1Upper, IType end1Type, bool end2IsNavigable, AggregationKind end2Aggregation, string end2Name, int end2Lower, object end2Upper)

Parameters

end1IsNavigable bool

The navigability for the first end of the new association.

end1Aggregation AggregationKind

The aggregation for the first end of the new association.

end1Name string

The name for the first end of the new association.

end1Lower int

The lower bound for the first end of the new association.

end1Upper object

The upper bound for the first end of the new association.

end1Type IType

The type for the first end of the new association.

end2IsNavigable bool

The navigability for the second end of the new association.

end2Aggregation AggregationKind

The aggregation for the second end of the new association.

end2Name string

The name for the second end of the new association.

end2Lower int

The lower bound for the second end of the new association.

end2Upper object

The upper bound for the second end of the new association.

Returns

IAssociation

GetAssociations()

Retrieves the associations in which this type is involved.

public ISetExpression<IAssociation> GetAssociations()

Returns

ISetExpression<IAssociation>

GetClass()

Gets the Class for this model element

public override IClass GetClass()

Returns

IClass

GetExpressionForReference(string)

Gets the property expression for the given reference

protected override INotifyExpression<IModelElement> GetExpressionForReference(string reference)

Parameters

reference string

The requested reference in upper case

Returns

INotifyExpression<IModelElement>

An incremental property expression

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

OnParentChanged(IModelElement, IModelElement)

Gets called when the parent model element of the current model element changes

protected override void OnParentChanged(IModelElement newParent, IModelElement oldParent)

Parameters

newParent IModelElement

The new parent model element

oldParent IModelElement

The old parent model element

OnParentChanging(IModelElement, IModelElement)

Gets called when the parent model element of the current model element is about to change

protected override void OnParentChanging(IModelElement newParent, IModelElement oldParent)

Parameters

newParent IModelElement

The new parent model element

oldParent IModelElement

The old parent model element

SetFeature(string, object)

Sets a value to the given feature

protected override void SetFeature(string feature, object value)

Parameters

feature string

The requested feature

value object

The value that should be set to that feature