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.util.List<java.lang.String> types)
        Checks if diagram type is of given diagram type (analogy of instanceof operator)
        Parameters:
        types - the list of diagram type string representation.
        Returns:
        true if this diagram type is a 'subtype' of at least one given diagram type or equal to at least one given diagram type; othwerwise - false.
        See Also:
        DiagramTypeConstants, getAllDiagramTypes(), isTypeOf(DiagramType)
      • isTypeOf

        @OpenApi
        public boolean isTypeOf​(java.lang.String type)
        Checks if diagram type is of given diagram type (analogy of instanceof operator)
        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.
      • clone

        @OpenApi
        public java.lang.Object clone()
        Overrides:
        clone in class java.lang.Object
      • 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