Class MofUml2FeatureValueSettersManager
- java.lang.Object
-
- com.nomagic.magicdraw.emfuml2xmi.v2.imp0rt.convert.feature.MofUml2FeatureValueSettersManager
-
@OpenApi public final class MofUml2FeatureValueSettersManager extends java.lang.Object
Registers FeatureValueSetter for MagicDraw UML model metaclasses
-
-
Field Summary
Fields Modifier and Type Field Description private static MofUml2FeatureValueSettersManager
mInstance
private java.util.Map<java.lang.Class,java.util.Map<java.lang.String,MofFeatureValueSetter>>
mSetters
-
Constructor Summary
Constructors Modifier Constructor Description private
MofUml2FeatureValueSettersManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSetter(java.lang.Class classType, MofFeatureValueSetter valueSetter)
Registers feature value setter for given MagicDraw UML metamodel class.private void
addStandard()
java.util.List<MofFeatureValueSetter>
getFeaturesSetters(Element element)
Get feature setters for given element.static MofUml2FeatureValueSettersManager
getInstance()
private java.util.Map<java.lang.String,MofFeatureValueSetter>
getSetters(Element element)
void
removeSetter(java.lang.Class classType, java.lang.String featureName)
Removes feature value setter.
-
-
-
Field Detail
-
mInstance
private static MofUml2FeatureValueSettersManager mInstance
-
mSetters
private final java.util.Map<java.lang.Class,java.util.Map<java.lang.String,MofFeatureValueSetter>> mSetters
-
-
Method Detail
-
getInstance
@OpenApi public static MofUml2FeatureValueSettersManager getInstance()
- Returns:
- manager instance.
-
addSetter
@OpenApi public void addSetter(java.lang.Class classType, MofFeatureValueSetter valueSetter)
Registers feature value setter for given MagicDraw UML metamodel class.- Parameters:
classType
- MagicDraw UML metamodel classvalueSetter
- feature converter
-
removeSetter
@OpenApi public void removeSetter(java.lang.Class classType, java.lang.String featureName)
Removes feature value setter.- Parameters:
classType
- MagicDraw UML metamodel classfeatureName
- feature
-
getSetters
private java.util.Map<java.lang.String,MofFeatureValueSetter> getSetters(Element element)
-
getFeaturesSetters
public java.util.List<MofFeatureValueSetter> getFeaturesSetters(Element element)
Get feature setters for given element.- Parameters:
element
- element.- Returns:
- list of
MofFeatureValueSetter
.
-
addStandard
private void addStandard()
-
-