Interface BaseEmfUml2Helper
-
- All Superinterfaces:
BaseEElementNameRetriever
- All Known Subinterfaces:
EmfUml2ExportHelper
,EmfUml2ExportHelper
,EmfUml2ExportHelper
,EmfUml2Helper
,EmfUml2Helper
,EmfUml2Helper
,EmfUml2ImportHelper
,EmfUml2ImportHelper
,EmfUml2ImportHelper
- All Known Implementing Classes:
BaseEmfUml2Helper
,EmfUml2ExportHelper
,EmfUml2Helper
,EmfUml2ImportHelper
@OpenApi public interface BaseEmfUml2Helper extends BaseEElementNameRetriever
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addCreatedElementIDData(java.lang.Object createdElement, java.lang.Object relatedElement, java.lang.String extra)
void
addFinalizeActivity(FinalizeActivity activity)
void
clearCreatedElementsIDData()
java.util.Map
getCreatedElementsIDData()
java.lang.String
getEElementName(java.lang.Object eElement)
Returns element human name.java.util.List<FinalizeActivity>
getFinalizeActivities()
EmfUml2Logger
getLogger()
Returns logger.java.util.Map
getMagicDrawAnnotationDetails(java.lang.Object eElement, boolean create)
java.util.List<java.lang.String>
getMDProjectBuiltinProfiles()
Returns profiles that are "built-in" in MagicDraw projectBaseOptions
getOptions()
com.nomagic.magicdraw.emfuml2xmi.helpers.BaseEmfUml2PersistenceHelper
getPersistenceHelper()
Project
getProject()
Returns current projectcom.nomagic.magicdraw.emfuml2xmi.helpers.BaseEmfUml2DataTypeMap
getUml2DataTypeMap()
Returns datatype mapboolean
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
markRemovableElement(java.lang.Object element)
Mark element that will be removed or already disposedvoid
markSkippedElement(java.lang.Object element)
Mark skipped element.void
setMDElementID(BaseElement mdElement, java.lang.Object eElement)
Set MD element id according given EMF element id.
-
-
-
Method Detail
-
getUml2DataTypeMap
com.nomagic.magicdraw.emfuml2xmi.helpers.BaseEmfUml2DataTypeMap getUml2DataTypeMap()
Returns datatype map- Returns:
- datatypes map
-
getMagicDrawAnnotationDetails
java.util.Map getMagicDrawAnnotationDetails(java.lang.Object eElement, boolean create)
-
getProject
@OpenApi Project getProject()
Returns current project- Returns:
- project
-
getLogger
@OpenApi EmfUml2Logger getLogger()
Returns logger.- Returns:
- logger
-
markMappedElement
@OpenApi void markMappedElement(java.lang.Object element)
Marks that element is mapped. Mapped element - element is not created, but used in UML2 model.- Parameters:
element
-
-
isMappedElement
@OpenApi boolean isMappedElement(java.lang.Object element)
Checks if given element is mapped.- Parameters:
element
-- Returns:
- true - if mapped.
-
markSkippedElement
@OpenApi void markSkippedElement(java.lang.Object element)
Mark skipped element.- Parameters:
element
-
-
isRemovableElement
@OpenApi 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)- Parameters:
element
-- Returns:
- true - if will element should be removed or are alredy removed.
-
markRemovableElement
void markRemovableElement(java.lang.Object element)
Mark element that will be removed or already disposed- Parameters:
element
-
-
getFinalizeActivities
java.util.List<FinalizeActivity> getFinalizeActivities()
-
isSkippedElement
@OpenApi boolean isSkippedElement(java.lang.Object element)
Checks if given element is skipped.- Parameters:
element
-
-
getPersistenceHelper
com.nomagic.magicdraw.emfuml2xmi.helpers.BaseEmfUml2PersistenceHelper getPersistenceHelper()
-
addCreatedElementIDData
void addCreatedElementIDData(java.lang.Object createdElement, java.lang.Object relatedElement, java.lang.String extra)
-
getCreatedElementsIDData
java.util.Map getCreatedElementsIDData()
-
clearCreatedElementsIDData
void clearCreatedElementsIDData()
-
setMDElementID
void setMDElementID(BaseElement mdElement, java.lang.Object eElement)
Set MD element id according given EMF element id. If there is id's conflict id is not changed.- Parameters:
mdElement
- MD elementeElement
- EMF element
-
getOptions
BaseOptions getOptions()
-
getEElementName
@OpenApi java.lang.String getEElementName(java.lang.Object eElement)
Returns element human name.- Specified by:
getEElementName
in interfaceBaseEElementNameRetriever
- Parameters:
eElement
-- Returns:
- element type + qualified name
-
getMDProjectBuiltinProfiles
java.util.List<java.lang.String> getMDProjectBuiltinProfiles()
Returns profiles that are "built-in" in MagicDraw project- Returns:
-
addFinalizeActivity
void addFinalizeActivity(FinalizeActivity activity)
-
-