Package com.nomagic.magicdraw.emfuml2xmi
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 java.lang.Object implements BaseEmfUml2Helper
Eclipse UML2 XMI helper.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getEElementName(java.lang.Object eElement)
Returns element human name.static java.lang.String
getElementName(Element mdElement, boolean qualifiedName)
Returns element human name.EmfUml2Logger
getLogger()
Returns logger.Project
getProject()
Returns current projectboolean
isMappedElement(java.lang.Object element)
Checks if given element is mapped.boolean
isRemovableElement(java.lang.Object element)
Checks if element will be removed or already disposed.boolean
isSkippedElement(java.lang.Object element)
Checks if given element is skipped.void
markMappedElement(java.lang.Object element)
Marks that element is mapped.void
markSkippedElement(java.lang.Object element)
Mark skipped element.
-
-
-
Method Detail
-
getProject
@OpenApi public Project getProject()
Returns current project- Specified by:
getProject
in interfaceBaseEmfUml2Helper
- Returns:
- project
-
getLogger
@OpenApi public EmfUml2Logger getLogger()
Returns logger.- Specified by:
getLogger
in interfaceBaseEmfUml2Helper
- Returns:
- logger
-
markMappedElement
@OpenApi public void markMappedElement(java.lang.Object element)
Marks that element is mapped. Mapped element - element is not created, but used in UML2 model.- Specified by:
markMappedElement
in interfaceBaseEmfUml2Helper
- Parameters:
element
-
-
isMappedElement
@OpenApi public boolean isMappedElement(java.lang.Object element)
Checks if given element is mapped.- Specified by:
isMappedElement
in interfaceBaseEmfUml2Helper
- Parameters:
element
-- Returns:
- true - if mapped.
-
markSkippedElement
@OpenApi public void markSkippedElement(java.lang.Object element)
Mark skipped element.- Specified by:
markSkippedElement
in interfaceBaseEmfUml2Helper
- Parameters:
element
-
-
isRemovableElement
@OpenApi public boolean isRemovableElement(java.lang.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 interfaceBaseEmfUml2Helper
- Parameters:
element
-- Returns:
- true - if will element should be removed or are alredy removed.
-
isSkippedElement
@OpenApi public boolean isSkippedElement(java.lang.Object element)
Checks if given element is skipped.- Specified by:
isSkippedElement
in interfaceBaseEmfUml2Helper
- Parameters:
element
-
-
getElementName
@OpenApi public static java.lang.String getElementName(Element mdElement, boolean qualifiedName)
Returns element human name.- Parameters:
mdElement
-qualifiedName
-- Returns:
- element type + [qualified] name
-
getEElementName
@OpenApi public final java.lang.String getEElementName(java.lang.Object eElement)
Returns element human name.- Specified by:
getEElementName
in interfaceBaseEElementNameRetriever
- Specified by:
getEElementName
in interfaceBaseEmfUml2Helper
- Parameters:
eElement
-- Returns:
- element type + qualified name
-
-