Class DiagramType

    • Method Detail

      • getDiagramType

        @OpenApi
        public static DiagramType getDiagramType​(Diagram diagram)
        Return diagram type for a given diagram
        Parameters:
        diagram - diagram
        Returns:
        diagram type
      • 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:
        isTypeOf(DiagramType)
      • isEqualType

        @OpenApi
        public boolean isEqualType​(java.lang.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:
        DiagramTypeConstants, getAllDiagramTypes(), isTypeOf(String)
      • 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(String)
      • isTypeOf

        @OpenApi
        public boolean isTypeOf​(java.lang.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:
        DiagramTypeConstants, getAllDiagramTypes(), isTypeOf(DiagramType)
      • getRootType

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

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

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

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

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