Class EmfUml2ElementsCreatorManager
- java.lang.Object
-
- com.nomagic.magicdraw.emfuml2xmi.v2.export.convert.element.EmfUml2ElementsCreatorManager
-
@OpenApi public final class EmfUml2ElementsCreatorManager extends java.lang.Object
Registers EmfElementCreators for MagicDraw UML2 model metaclasses
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.Class,EmfElementCreator>
mCreators
private static EmfUml2ElementsCreatorManager
mInstance
-
Constructor Summary
Constructors Modifier Constructor Description private
EmfUml2ElementsCreatorManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCreator(java.lang.Class mdClassType, EmfElementCreator creator)
Registers new creator.private void
addCreatorsForAll(java.lang.Class type, EmfElementCreator creator, RepositoryReflection repositoryReflection)
private void
addStandard()
EmfElementCreator
getCreator(java.lang.Class mdClassType)
Returns element creatorstatic EmfUml2ElementsCreatorManager
getInstance()
void
removeConverter(java.lang.Class mdClassType)
Removes elements creator.
-
-
-
Field Detail
-
mInstance
private static EmfUml2ElementsCreatorManager mInstance
-
mCreators
private final java.util.Map<java.lang.Class,EmfElementCreator> mCreators
-
-
Method Detail
-
addStandard
private void addStandard()
-
addCreatorsForAll
private void addCreatorsForAll(java.lang.Class type, EmfElementCreator creator, RepositoryReflection repositoryReflection)
-
getInstance
@OpenApi public static EmfUml2ElementsCreatorManager getInstance()
- Returns:
- manager instance.
-
addCreator
@OpenApi public void addCreator(java.lang.Class mdClassType, EmfElementCreator creator)
Registers new creator.- Parameters:
mdClassType
- MagicDraw UML2 model metaclasscreator
- element creator
-
removeConverter
@OpenApi public void removeConverter(java.lang.Class mdClassType)
Removes elements creator.- Parameters:
mdClassType
- MagicDraw UML2 model metaclass
-
getCreator
public EmfElementCreator getCreator(java.lang.Class mdClassType)
Returns element creator- Parameters:
mdClassType
- MagicDraw UML2 model metaclass- Returns:
- element creator
-
-