Class BaseEmfUml2Helper

java.lang.Object
com.nomagic.magicdraw.emfuml2xmi.BaseEmfUml2Helper
All Implemented Interfaces:
BaseEElementNameRetriever, BaseEmfUml2Helper
Direct Known Subclasses:
EmfUml2Helper

@OpenApi public abstract class BaseEmfUml2Helper extends Object implements BaseEmfUml2Helper
Eclipse UML2 XMI helper.
  • Method Details

    • getProject

      @OpenApi public Project getProject()
      Returns current project
      Specified by:
      getProject in interface BaseEmfUml2Helper
      Returns:
      project
    • getLogger

      @OpenApi public EmfUml2Logger getLogger()
      Returns logger.
      Specified by:
      getLogger in interface BaseEmfUml2Helper
      Returns:
      logger
    • markMappedElement

      @OpenApi public void markMappedElement(Object element)
      Marks that element is mapped. Mapped element - element is not created, but used in UML2 model.
      Specified by:
      markMappedElement in interface BaseEmfUml2Helper
      Parameters:
      element -
    • isMappedElement

      @OpenApi public boolean isMappedElement(Object element)
      Checks if given element is mapped.
      Specified by:
      isMappedElement in interface BaseEmfUml2Helper
      Parameters:
      element -
      Returns:
      true - if mapped.
    • markSkippedElement

      @OpenApi public void markSkippedElement(Object element)
      Mark skipped element.
      Specified by:
      markSkippedElement in interface BaseEmfUml2Helper
      Parameters:
      element -
    • isRemovableElement

      @OpenApi public boolean isRemovableElement(Object element)
      Checks if element will be removed or already disposed. Element can be disposed if during export/import differs composite reference multiplicity (* to 1)
      Specified by:
      isRemovableElement in interface BaseEmfUml2Helper
      Parameters:
      element -
      Returns:
      true - if will element should be removed or are alredy removed.
    • isSkippedElement

      @OpenApi public boolean isSkippedElement(Object element)
      Checks if given element is skipped.
      Specified by:
      isSkippedElement in interface BaseEmfUml2Helper
      Parameters:
      element -
    • getElementName

      @OpenApi public static String getElementName(Element mdElement, boolean qualifiedName)
      Returns element human name.
      Parameters:
      mdElement -
      qualifiedName -
      Returns:
      element type + [qualified] name
    • getEElementName

      @OpenApi public final String getEElementName(Object eElement)
      Returns element human name.
      Specified by:
      getEElementName in interface BaseEElementNameRetriever
      Specified by:
      getEElementName in interface BaseEmfUml2Helper
      Parameters:
      eElement -
      Returns:
      element type + qualified name