Table of Contents

Interface ITemplateableElement

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

The public interface for TemplateableElement

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

Properties

OwnedTemplateSignature

The optional TemplateSignature specifying the formal TemplateParameters for this TemplateableElement. If a TemplateableElement has a TemplateSignature, then it is a template. <p>From package UML::CommonStructure.</p>

[Browsable(false)]
[XmlElementName("ownedTemplateSignature")]
[XmlAttribute(false)]
[Containment]
[XmlOpposite("template")]
ITemplateSignature OwnedTemplateSignature { get; set; }

Property Value

ITemplateSignature

TemplateBinding

The optional TemplateBindings from this TemplateableElement to one or more templates. <p>From package UML::CommonStructure.</p>

[Browsable(false)]
[XmlElementName("templateBinding")]
[XmlAttribute(false)]
[Containment]
[XmlOpposite("boundElement")]
IOrderedSetExpression<ITemplateBinding> TemplateBinding { get; }

Property Value

IOrderedSetExpression<ITemplateBinding>

Methods

IsTemplate()

The query isTemplate() returns whether this TemplateableElement is actually a template. result = (ownedTemplateSignature <> null) <p>From package UML::CommonStructure.</p>

bool IsTemplate()

Returns

bool

ParameterableElements()

The query parameterableElements() returns the set of ParameterableElements that may be used as the parameteredElements for a TemplateParameter of this TemplateableElement. By default, this set includes all the ownedElements. Subclasses may override this operation if they choose to restrict the set of ParameterableElements. result = (self.allOwnedElements()->select(oclIsKindOf(ParameterableElement)).oclAsType(ParameterableElement)->asSet()) <p>From package UML::CommonStructure.</p>

ISetExpression<IParameterableElement> ParameterableElements()

Returns

ISetExpression<IParameterableElement>