Table of Contents

Interface IType

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

The public interface for Type

[DefaultImplementationType(typeof(Type))]
[XmlDefaultImplementationType(typeof(Type))]
[ModelRepresentationClass("http://www.eclipse.org/uml2/5.0.0/UML#//Type")]
public interface IType : IPackageableElement, IParameterableElement, INamedElement, IElement, IEModelElement, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Inherited Members

Properties

Package

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

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

Property Value

IPackage

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>

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.

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.

ISetExpression<IAssociation> GetAssociations()

Returns

ISetExpression<IAssociation>