Package com.nomagic.magicdraw.uml2
Class Templates
- java.lang.Object
-
- com.nomagic.magicdraw.uml2.Templates
-
public class Templates extends java.lang.Object
Convenient static methods to work with Templates elements.
-
-
Constructor Summary
Constructors Constructor Description Templates()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<TemplateParameter>
getOwnedTemplateParameters(TemplateableElement element, boolean create)
Returns a list of owned template parameters.static java.util.List<TemplateParameter>
getOwnedTemplateParameters(TemplateBinding binding)
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.
-
-
-
Method Detail
-
getOwnedTemplateParameters
public static java.util.List<TemplateParameter> getOwnedTemplateParameters(TemplateBinding binding)
Return a copy of list of owned template parameters pointed by this template binding..
-
getOwnedTemplateParameters
public static java.util.List<TemplateParameter> getOwnedTemplateParameters(TemplateableElement element, boolean create)
Returns a list of owned template parameters. Can create template signature if needed.
-
getTemplateSignature
public static TemplateSignature getTemplateSignature(TemplateableElement element, boolean create)
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
-
-