Class EmfOptionsGroup
- java.lang.Object
-
- com.nomagic.magicdraw.core.options.OptionsGroup
-
- com.nomagic.magicdraw.core.options.AbstractPropertyOptionsGroup
-
- com.nomagic.magicdraw.core.options.VersionedOptionsGroup
-
- com.nomagic.magicdraw.emfuml2xmi.envoptions.BaseEmfOptionsGroup
-
- com.nomagic.magicdraw.emfuml2xmi.v2.envoptions.EmfOptionsGroup
-
- All Implemented Interfaces:
BaseOptions
,Options
,java.lang.Cloneable
@OpenApi public class EmfOptionsGroup extends BaseEmfOptionsGroup implements Options
Eclipse UML2 XMI v2.x export/import environment options.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
com.nomagic.magicdraw.emfuml2xmi.v2.envoptions.EmfOptionsGroup.EmfOptionsPropertyResourceProvider
-
Nested classes/interfaces inherited from class com.nomagic.magicdraw.emfuml2xmi.envoptions.BaseEmfOptionsGroup
com.nomagic.magicdraw.emfuml2xmi.envoptions.BaseEmfOptionsGroup.BaseEmfOptionsPropertyResourceProvider
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
CHANGE_NOT_ECORE_DATATYPE_TO_STRING
private static java.lang.String
CHANGE_STEREOTYPE_PROPERTY_TYPE_STEREOTYPE
static java.lang.String
ID
-
Fields inherited from class com.nomagic.magicdraw.emfuml2xmi.envoptions.BaseEmfOptionsGroup
EMF_OPTIONS_GROUP_ID, MOVE_STEREOTYPE_TO_NESTING_PROFILE, OPTION_ASK_BEFORE_EXPORT, OPTION_EXPORT_ALWAYS, OPTION_NEVER, PRESERVE_IDS_DO_NOT, PRESERVE_IDS_ON_EXPORT, PRESERVE_IDS_ON_IMPORT, PRESERVE_IDS_ON_IMPORT_EXPORT
-
Fields inherited from class com.nomagic.magicdraw.core.options.VersionedOptionsGroup
CURRENT_EXPORTER_VERSION
-
Fields inherited from class com.nomagic.magicdraw.core.options.OptionsGroup
ICON_ENVIRONMENT_OPTIONS
-
Fields inherited from interface com.nomagic.magicdraw.emfuml2xmi.envoptions.BaseOptions
OPTION_ASK_BEFORE_EXPORT, OPTION_EXPORT_ALWAYS, OPTION_NEVER, PRESERVE_IDS_DO_NOT, PRESERVE_IDS_ON_EXPORT, PRESERVE_IDS_ON_IMPORT, PRESERVE_IDS_ON_IMPORT_EXPORT
-
Fields inherited from interface com.nomagic.magicdraw.emfuml2xmi.v2.envoptions.Options
CHANGE_STEREOTYPE_PROPERTY_TYPE_STEREOTYPE_MULTIPLE_EXTENDED_METACLASS, CHANGE_STEREOTYPE_PROPERTY_TYPE_STEREOTYPE_NOT_CHANGE, CHANGE_STEREOTYPE_PROPERTY_TYPE_STEREOTYPE_SINGLE_EXTENDED_METACLASS
-
-
Constructor Summary
Constructors Constructor Description EmfOptionsGroup(java.lang.String id, java.lang.String format)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
addChangeStereotypePropertyTypeStereotype(java.lang.String selected)
protected void
afterLoad(com.nomagic.magicdraw.lic.MDVersion version, boolean pluginsLoaded)
protected com.nomagic.magicdraw.emfuml2xmi.envoptions.BaseEmfOptionsGroup.BaseEmfOptionsPropertyResourceProvider
createPropertyResourceProvider()
java.lang.String
getChangeStereotypePropertyTypeStereotype()
Get "Change stereotype property type stereotype" option value.static EmfOptionsGroup
getEMFOptions()
Get the Eclipse UML2 XMI v2.x export/import options.boolean
isChangeNotEcoreDataTypeToString()
Checks if to change stereotype property type not eCore datatype to String on export.boolean
isChangeStereotypePropertyTypeStereotype()
Checks if to change stereotype property type stereotype to metaclass on export.void
setChangeNotEcoreDataTypeToString(boolean change)
Set if to change stereotype property type not eCore datatype to String on export.void
setChangeStereotypePropertyTypeStereotype(boolean change)
Set if to change stereotype property type stereotype to metaclass on export.void
setChangeStereotypePropertyTypeStereotype(java.lang.String value)
Set "Change stereotype property type stereotype" option value.void
setDefaultValues()
Sets default values for the properties contained in this group.-
Methods inherited from class com.nomagic.magicdraw.emfuml2xmi.envoptions.BaseEmfOptionsGroup
addBooleanProperty, addBooleanProperty, addChoiceProperty, addProperty, getAutoExportOption, getBanner, getBaseEMFOptions, getBooleanProperty, getBooleanPropertyValue, getChoice, getGroupIcon, getName, getPreserveIDs, getPropertyGroupName, isApplyAllProfilesToRootModel, isAskBeforeExport, isAskToOverwriteExportedFiles, isAutoExport, isDisplayWarnings, isMoveStereotypeToNestingProfile, isPreserveExportedIDs, isPreserveImportedIDs, isShowMappinWarning, isShowStereotypeFromSameWarning, isShowStereotypePropertyTypeChangeWarning, isUseKeywordAsStereotypeName, loadOptions, registerOptions, setApplyAllProfilesToRootModel, setAskToOverwriteExportedFiles, setAutoExportOption, setBooleanPropertyValue, setDisplayWarnings, setMoveStereotypeToNestingProfile, setPreserveIDs, setShowMappinWarning, setShowStereotypeFromSameWarning, setShowStereotypePropertyTypeChangeWarning, setUseKeywordAsStereotypeName
-
Methods inherited from class com.nomagic.magicdraw.core.options.VersionedOptionsGroup
beforeLoad, getExporterVersion, getOptionsToSave, isExporterVersionEarlier, isExporterVersionEarlier
-
Methods inherited from class com.nomagic.magicdraw.core.options.AbstractPropertyOptionsGroup
addInvisibleProperty, addProperty, addProperty, clone, createDefault, createOptions, createOptionsPanel, fixProperty, getCopy, getOptions, getProperty, getVisibleOptions, hasVisibleOptions, removeProperty, setOptions, setPropertiesInvisible, setPropertyInvisible
-
Methods inherited from class com.nomagic.magicdraw.core.options.OptionsGroup
add, afterSave, firstInit, getChildren, getIcon, getId, getParent, isEnabled, isVisible, remove, resetCachedValues, setEnabled, setVisible, sortChildren
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.nomagic.magicdraw.emfuml2xmi.envoptions.BaseOptions
getAutoExportOption, getPreserveIDs, isApplyAllProfilesToRootModel, isAskBeforeExport, isAskToOverwriteExportedFiles, isAutoExport, isDisplayWarnings, isMoveStereotypeToNestingProfile, isPreserveExportedIDs, isPreserveImportedIDs, isShowMappinWarning, isShowStereotypeFromSameWarning, isShowStereotypePropertyTypeChangeWarning, isUseKeywordAsStereotypeName, setApplyAllProfilesToRootModel, setAskToOverwriteExportedFiles, setAutoExportOption, setDisplayWarnings, setMoveStereotypeToNestingProfile, setPreserveIDs, setShowMappinWarning, setShowStereotypeFromSameWarning, setShowStereotypePropertyTypeChangeWarning, setUseKeywordAsStereotypeName
-
-
-
-
Field Detail
-
CHANGE_STEREOTYPE_PROPERTY_TYPE_STEREOTYPE
private static final java.lang.String CHANGE_STEREOTYPE_PROPERTY_TYPE_STEREOTYPE
- See Also:
- Constant Field Values
-
CHANGE_NOT_ECORE_DATATYPE_TO_STRING
private static final java.lang.String CHANGE_NOT_ECORE_DATATYPE_TO_STRING
- See Also:
- Constant Field Values
-
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getEMFOptions
@OpenApi public static EmfOptionsGroup getEMFOptions()
Get the Eclipse UML2 XMI v2.x export/import options. Options must accessed only after the application is started.- Returns:
- loaded options.
-
setDefaultValues
public void setDefaultValues()
Description copied from class:AbstractPropertyOptionsGroup
Sets default values for the properties contained in this group. Overriding classes should set default values to the properties.
-
afterLoad
protected void afterLoad(com.nomagic.magicdraw.lic.MDVersion version, boolean pluginsLoaded)
- Overrides:
afterLoad
in classcom.nomagic.magicdraw.core.options.VersionedOptionsGroup
-
addChangeStereotypePropertyTypeStereotype
private void addChangeStereotypePropertyTypeStereotype(java.lang.String selected)
-
setChangeStereotypePropertyTypeStereotype
@OpenApi public void setChangeStereotypePropertyTypeStereotype(boolean change)
Set if to change stereotype property type stereotype to metaclass on export.- Specified by:
setChangeStereotypePropertyTypeStereotype
in interfaceOptions
- Parameters:
change
-
-
isChangeStereotypePropertyTypeStereotype
@OpenApi public boolean isChangeStereotypePropertyTypeStereotype()
Checks if to change stereotype property type stereotype to metaclass on export.- Specified by:
isChangeStereotypePropertyTypeStereotype
in interfaceOptions
- Returns:
- true if stereotype property type stereotype should be changed to metaclass.
-
setChangeStereotypePropertyTypeStereotype
public void setChangeStereotypePropertyTypeStereotype(java.lang.String value)
Description copied from interface:Options
Set "Change stereotype property type stereotype" option value.- Specified by:
setChangeStereotypePropertyTypeStereotype
in interfaceOptions
- Parameters:
value
- value to set (Options.CHANGE_STEREOTYPE_PROPERTY_TYPE_STEREOTYPE_NOT_CHANGE
,Options.CHANGE_STEREOTYPE_PROPERTY_TYPE_STEREOTYPE_SINGLE_EXTENDED_METACLASS
,Options.CHANGE_STEREOTYPE_PROPERTY_TYPE_STEREOTYPE_MULTIPLE_EXTENDED_METACLASS
).
-
getChangeStereotypePropertyTypeStereotype
public java.lang.String getChangeStereotypePropertyTypeStereotype()
Description copied from interface:Options
Get "Change stereotype property type stereotype" option value.- Specified by:
getChangeStereotypePropertyTypeStereotype
in interfaceOptions
- Returns:
- value (
Options.CHANGE_STEREOTYPE_PROPERTY_TYPE_STEREOTYPE_NOT_CHANGE
,Options.CHANGE_STEREOTYPE_PROPERTY_TYPE_STEREOTYPE_SINGLE_EXTENDED_METACLASS
,Options.CHANGE_STEREOTYPE_PROPERTY_TYPE_STEREOTYPE_MULTIPLE_EXTENDED_METACLASS
)
-
setChangeNotEcoreDataTypeToString
public void setChangeNotEcoreDataTypeToString(boolean change)
Description copied from interface:Options
Set if to change stereotype property type not eCore datatype to String on export.- Specified by:
setChangeNotEcoreDataTypeToString
in interfaceOptions
- Parameters:
change
- true - change.
-
isChangeNotEcoreDataTypeToString
public boolean isChangeNotEcoreDataTypeToString()
Description copied from interface:Options
Checks if to change stereotype property type not eCore datatype to String on export.- Specified by:
isChangeNotEcoreDataTypeToString
in interfaceOptions
- Returns:
- true if stereotype property type not eCore datatype should be changed to String.
-
createPropertyResourceProvider
protected com.nomagic.magicdraw.emfuml2xmi.envoptions.BaseEmfOptionsGroup.BaseEmfOptionsPropertyResourceProvider createPropertyResourceProvider()
-
-