Class Templates

java.lang.Object
com.nomagic.magicdraw.uml2.Templates

public class Templates extends Object
Convenient static methods to work with Templates elements.
  • Constructor Details

    • Templates

      public Templates()
  • Method Details

    • getOwnedTemplateParameters

      public static List<TemplateParameter> getOwnedTemplateParameters(TemplateBinding binding)
      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

      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 - element
      create - create a new signature
      Returns:
      signature