Table of Contents

Interface ITemplateSignature

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

The public interface for TemplateSignature

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

Properties

OwnedParameter

The formal parameters that are owned by this TemplateSignature. <p>From package UML::CommonStructure.</p>

[XmlElementName("ownedParameter")]
[XmlAttribute(true)]
[XmlOpposite("signature")]
IOrderedSetExpression<ITemplateParameter> OwnedParameter { get; }

Property Value

IOrderedSetExpression<ITemplateParameter>

Parameter

The ordered set of all formal TemplateParameters for this TemplateSignature. <p>From package UML::CommonStructure.</p>

[LowerBound(1)]
[XmlElementName("parameter")]
[XmlAttribute(true)]
IListExpression<ITemplateParameter> Parameter { get; }

Property Value

IListExpression<ITemplateParameter>

Template

The TemplateableElement that owns this TemplateSignature. <p>From package UML::CommonStructure.</p>

[Browsable(false)]
[XmlElementName("template")]
[XmlAttribute(true)]
[XmlOpposite("ownedTemplateSignature")]
ITemplateableElement Template { get; set; }

Property Value

ITemplateableElement

Methods

Own_elements(object, object)

Parameters must own the ParameterableElements they parameter or those ParameterableElements must be owned by the TemplateableElement being templated. template.ownedElement->includesAll(parameter.parameteredElement->asSet() - parameter.ownedParameteredElement->asSet())

bool Own_elements(object diagnostics, object context)

Parameters

diagnostics object

The chain of diagnostics to which problems are to be appended.

context object

The cache of context-specific information.

Returns

bool

Unique_parameters(object, object)

The names of the parameters of a TemplateSignature are unique. parameter->forAll( p1, p2 | (p1 <> p2 and p1.parameteredElement.oclIsKindOf(NamedElement) and p2.parameteredElement.oclIsKindOf(NamedElement) ) implies p1.parameteredElement.oclAsType(NamedElement).name <> p2.parameteredElement.oclAsType(NamedElement).name)

bool Unique_parameters(object diagnostics, object context)

Parameters

diagnostics object

The chain of diagnostics to which problems are to be appended.

context object

The cache of context-specific information.

Returns

bool