Package com.nomagic.magicdraw.uml2
Class Templates
java.lang.Object
com.nomagic.magicdraw.uml2.Templates
Convenient static methods to work with Templates elements.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<TemplateParameter>
getOwnedTemplateParameters
(TemplateableElement element, boolean create) Returns a list of owned template parameters.static List<TemplateParameter>
Return a copy of list of owned template parameters pointed by this template binding..static TemplateSignature
getTemplateSignature
(TemplateableElement element, boolean create) Creates a new instance of TemplateSignature or returns existing one.
-
Constructor Details
-
Templates
public Templates()
-
-
Method Details
-
getOwnedTemplateParameters
Return a copy of list of owned template parameters pointed by this template binding.. -
getOwnedTemplateParameters
public static List<TemplateParameter> getOwnedTemplateParameters(TemplateableElement element, boolean create) Returns a list of owned template parameters. Can create template signature if needed. -
getTemplateSignature
Creates a new instance of TemplateSignature or returns existing one. If element is Classifier, RedefinableTemplateSignature is created.- Parameters:
element
- elementcreate
- create a new signature- Returns:
- signature
-