Interface ElementDraft.Factory

  • Enclosing interface:
    ElementDraft

    public static interface ElementDraft.Factory
    Node and edge draft factory. Creates node and edge to push in the container.
    • Method Detail

      • newNodeDraft

        NodeDraft newNodeDraft()
        Returns an empty node draft instance.
        Returns:
        an instance of NodeDraft
      • newNodeDraft

        NodeDraft newNodeDraft​(String id)
        Returns an empty node draft instance.
        Parameters:
        id - node id
        Returns:
        an instance of NodeDraft
      • newEdgeDraft

        EdgeDraft newEdgeDraft()
        Returns an empty edge draft instance. Note that source and target have to be set.
        Returns:
        an instance of EdgeDraft
      • newEdgeDraft

        EdgeDraft newEdgeDraft​(String id)
        Returns an empty edge draft instance.
        Parameters:
        id - edge id
        Returns:
        an instance of EdgeDraft