Class DiagramType

All Implemented Interfaces:
DiagramTypeConstants, DiagramTypes, Cloneable

@OpenApi public class DiagramType extends AbstractDiagramType implements DiagramTypeConstants
The DiagramType class represents the diagram type
  • Constructor Details

  • Method Details

    • getDiagramType

      @OpenApi public static DiagramType getDiagramType(Diagram diagram)
      Return diagram type for a given diagram
      Parameters:
      diagram - diagram
      Returns:
      diagram type
    • setType

      @OpenApi public void setType(String type)
      Sets the diagram type, according given diagram type string representation
      Parameters:
      type - diagram type string representation
      See Also:
    • getType

      @OpenApi public String getType()
      Returns the diagram type string representation
      Specified by:
      getType in class AbstractDiagramType
      Returns:
      diagram type string representation
      See Also:
    • isEqualType

      @OpenApi public boolean isEqualType(DiagramType type)
      Checks if diagram type is equal to given diagram type.
      Parameters:
      type - diagram type
      Returns:
      true if this diagram type is equal to given diagram type; otherwise - false.
      See Also:
    • isEqualType

      @OpenApi public boolean isEqualType(String type)
      Checks if diagram type is equal to given diagram type.
      Parameters:
      type - diagram type string representation
      Returns:
      true if this diagram type is equal to given diagram type; otherwise - false.
      See Also:
    • isTypeOf

      @OpenApi public boolean isTypeOf(DiagramType type)
      Checks if diagram type is of given diagram type (analogy of instanceof operator)
      Parameters:
      type - diagram type.
      Returns:
      true if this diagram type is a 'subtype' of given diagram type or equal to given diagram type; otherwise - false.
      See Also:
    • isTypeOf

      @OpenApi public boolean isTypeOf(String type)
      Checks if diagram type is of given diagram type (analogy of instanceof operator)
      Specified by:
      isTypeOf in class AbstractDiagramType
      Parameters:
      type - diagram type string representation.
      Returns:
      true if this diagram type is a 'subtype' of given diagram type or equal to given diagram type; otherwise - false.
      See Also:
    • getRootType

      @OpenApi public String getRootType()
      Returns root type of this diagram type.
      Returns:
      root type.
    • clone

      @OpenApi public DiagramType clone()
      Overrides:
      clone in class AbstractDiagramType
    • getAllDiagramTypes

      @OpenApi public static List<String> getAllDiagramTypes()
      Returns list of all diagram types.
      Returns:
      list of all diagram types.
      See Also:
    • getCreatableDiagramTypes

      @OpenApi public static List<String> getCreatableDiagramTypes()
      Returns list of available to create (creatable) diagram types.
      Returns:
      list of available to create (creatable) diagram types.
      See Also:
    • createDiagramType

      @OpenApi public static DiagramType createDiagramType(String type)
      Creates diagram type of given type string representation.
      Parameters:
      type - diagram type string representation
      Returns:
      created diagram type.
      See Also:
    • isCreatableDiagramType

      @OpenApi public static boolean isCreatableDiagramType(String type)
      Check, whether diagram type is creatable.
      Parameters:
      type - diagram type string representation
      Returns:
      true, if type is creatable.
      See Also: