Interface IGpmnModel


  • public interface IGpmnModel
    • Method Detail

      • getDescription

        java.lang.String getDescription()
        Gets the description.
        Returns:
        The description.
      • setDescription

        void setDescription​(java.lang.String description)
        Sets the name.
        Parameters:
        description - The description.
      • getPackage

        java.lang.String getPackage()
        Gets the package.
        Returns:
        The package.
      • setPackage

        void setPackage​(java.lang.String pkg)
        Sets the package.
        Parameters:
        pkg - The package.
      • getContext

        IContext getContext()
        Gets the context.
        Returns:
        The context.
      • setContext

        void setContext​(IContext context)
        Sets the context.
        Parameters:
        context - The context.
      • createNode

        INode createNode​(java.lang.Class nodetype)
        Creates a node in the model.
        Parameters:
        nodetype - The node type.
        Returns:
        The node.
      • copyNode

        INode copyNode​(IElement node)
        Copies a node in the model.
        Parameters:
        node - The node.
        Returns:
        The node copy.
      • createEdge

        IEdge createEdge​(IElement source,
                         IElement target,
                         java.lang.Class edgetype)
        Creates an edge in the model.
        Parameters:
        source - Source of the edge.
        target - Target of the edge.
        edgetype - The edge type.
        Returns:
        The edge.
      • removeNode

        void removeNode​(INode node)
        Removes a node from the model.
        Parameters:
        node - The node.
      • removeEdge

        void removeEdge​(IEdge edge)
        Removes an edge from the model.
        Parameters:
        edge - The edge.
      • getModelCodec

        IModelCodec getModelCodec​(java.lang.String type)
        Returns the codec for loading and saving models.
        Parameters:
        type - The type of the codec.
        Returns:
        The codec.
      • generateGraphModel

        com.mxgraph.model.mxIGraphModel generateGraphModel()
        Generates a visual model for a GPMN model.
        Returns:
        A visual model.
      • clear

        void clear()
        Clears the model.