Interface ExtractTarget

    • Method Detail

      • setTargetDiagramType

        void setTargetDiagramType​(java.lang.String targetDiagramType)
        Sets type of diagram to create the target diagram. Target diagram type must be among allowed target diagram types for a specific extract refactoring. If target diagram type is not among allowed types, IllegalArgumentException is thrown.
        Parameters:
        targetDiagramType - target diagram type to set.
      • getAllowedTargetDiagramTypes

        java.util.List<java.lang.String> getAllowedTargetDiagramTypes()
        Gets allowed target diagram types for extract refactoring.
        Returns:
        allowed target diagram types.
      • setTargetNamespace

        void setTargetNamespace​(Namespace targetNamespace)
        Sets namespace in which target elements have to be created.
        Parameters:
        targetNamespace - namespace for target elements.
      • getReferences

        java.util.List<? extends ExtractReference> getReferences()
        Gets source to target references. Reference represents logical model relation from the extract source to the extract target. In the concrete refactoring this reference can be represented as connector (composite structures), object flow (activities), transition (states), message (interactions).
        Returns:
        source to target references.
      • setElementName

        void setElementName​(java.lang.String elementName)
        Sets name of the refactored target element.
        Parameters:
        elementName - refactored element name.
      • getElement

        Element getElement()
        Gets element which was created in the extract refactor target after refactoring.
        Returns:
        target refactored element if called after refactoring, null if called before refactoring.
      • getDiagram

        DiagramPresentationElement getDiagram()
        Gets target diagram which was created during refactoring.
        Returns:
        target diagram.