Package com.nomagic.magicdraw.emfuml2xmi
Class BaseEmfUml2Helper
java.lang.Object
com.nomagic.magicdraw.emfuml2xmi.BaseEmfUml2Helper
- All Implemented Interfaces:
BaseEElementNameRetriever
,BaseEmfUml2Helper
- Direct Known Subclasses:
EmfUml2Helper
Eclipse UML2 XMI helper.
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
getEElementName
(Object eElement) Returns element human name.static String
getElementName
(Element mdElement, boolean qualifiedName) Returns element human name.Returns logger.Returns current projectboolean
isMappedElement
(Object element) Checks if given element is mapped.boolean
isRemovableElement
(Object element) Checks if element will be removed or already disposed.boolean
isSkippedElement
(Object element) Checks if given element is skipped.void
markMappedElement
(Object element) Marks that element is mapped.void
markSkippedElement
(Object element) Mark skipped element.
-
Method Details
-
getProject
Returns current project- Specified by:
getProject
in interfaceBaseEmfUml2Helper
- Returns:
- project
-
getLogger
Returns logger.- Specified by:
getLogger
in interfaceBaseEmfUml2Helper
- Returns:
- logger
-
markMappedElement
Marks that element is mapped. Mapped element - element is not created, but used in UML2 model.- Specified by:
markMappedElement
in interfaceBaseEmfUml2Helper
- Parameters:
element
-
-
isMappedElement
Checks if given element is mapped.- Specified by:
isMappedElement
in interfaceBaseEmfUml2Helper
- Parameters:
element
-- Returns:
- true - if mapped.
-
markSkippedElement
Mark skipped element.- Specified by:
markSkippedElement
in interfaceBaseEmfUml2Helper
- Parameters:
element
-
-
isRemovableElement
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
Checks if given element is skipped.- Specified by:
isSkippedElement
in interfaceBaseEmfUml2Helper
- Parameters:
element
-
-
getElementName
Returns element human name.- Parameters:
mdElement
-qualifiedName
-- Returns:
- element type + [qualified] name
-
getEElementName
Returns element human name.- Specified by:
getEElementName
in interfaceBaseEElementNameRetriever
- Specified by:
getEElementName
in interfaceBaseEmfUml2Helper
- Parameters:
eElement
-- Returns:
- element type + qualified name
-