Class MagicDrawOptions


  • public class MagicDrawOptions
    extends java.lang.Object
    Provides options available when reading or writing MagicDraw data:
     Map options = new HashMap();
     options.put(MagicDrawOptions.OPTION_OVERRIDE_STANDARD_PROFILES, Boolean.TRUE);
     Model umlModel =...
     umlModel.read("MagicDraw", "this_is_my_path", options);
     
    Options might also be set as a Java System property.
    For example, for an option named "xyz", setting a value as a Java Virtual Machine argument is done this way:
     -Dxyz=myValue
     
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String OPTION_MAGIC_DRAW_DIR
      Set to the MagicDraw install directory, determines whether "profiles" and "modelLibraries" directories should be used to resolve proxies.
      static java.lang.String OPTION_MAGIC_DRAW_INSTALL_PATH
      Deprecated.
      static java.lang.String OPTION_MAGIC_DRAW_LOG
      Set to true, print the debug/info/warning/error in the logger - default true
      magicdraw.log
      static java.lang.String OPTION_MAGIC_DRAW_UAF
      Set to true, write a UAF model, set to false, write a UPDM model.
      static java.lang.String OPTION_MAGIC_DRAW_USED_PROJECTS_DIR
      Use the directories paths in parameter to resolve proxies.
      static java.lang.String OPTION_MAGIC_DRAW_VERSION
      Set to "19.0", the MagicDraw 19.0 profiles will be loaded.
      Set to "2021x", the MagicDraw 2021 profiles will be loaded.
      Set to "2022x", the MagicDraw 2022 profiles will be loaded.
      Set to "2024x", the MagicDraw 2024 profiles will be loaded.
      Set to "LATEST", the MagicDraw 2024x profiles will be loaded - default "LATEST"
      magicdraw.profile.version
      static java.lang.String OPTION_OVERRIDE_STANDARD_PROFILES
      Set to true, override the standard OMG profiles by the native MagicDraw profiles - only for SysML profile - default false
      magicdraw.override.standard
      static java.lang.String OPTION_WRITER_MDXML_UNIQUE_ID
      Set to true, creates MagicDraw elements with unique id (when case is not ignored) - default false mdxml.unique.id
      static java.lang.String OPTION_WRITER_SHOW_ROLE_NAME
      Deprecated.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • OPTION_WRITER_MDXML_UNIQUE_ID

        public static final java.lang.String OPTION_WRITER_MDXML_UNIQUE_ID
        Set to true, creates MagicDraw elements with unique id (when case is not ignored) - default false mdxml.unique.id
        See Also:
        Constant Field Values
      • OPTION_WRITER_SHOW_ROLE_NAME

        @Deprecated
        public static final java.lang.String OPTION_WRITER_SHOW_ROLE_NAME
        Deprecated.
        See Also:
        Constant Field Values
      • OPTION_OVERRIDE_STANDARD_PROFILES

        public static final java.lang.String OPTION_OVERRIDE_STANDARD_PROFILES
        Set to true, override the standard OMG profiles by the native MagicDraw profiles - only for SysML profile - default false
        magicdraw.override.standard
        See Also:
        Constant Field Values
      • OPTION_MAGIC_DRAW_VERSION

        public static final java.lang.String OPTION_MAGIC_DRAW_VERSION
        Set to "19.0", the MagicDraw 19.0 profiles will be loaded.
        Set to "2021x", the MagicDraw 2021 profiles will be loaded.
        Set to "2022x", the MagicDraw 2022 profiles will be loaded.
        Set to "2024x", the MagicDraw 2024 profiles will be loaded.
        Set to "LATEST", the MagicDraw 2024x profiles will be loaded - default "LATEST"
        magicdraw.profile.version
        See Also:
        Constant Field Values
      • OPTION_MAGIC_DRAW_LOG

        public static final java.lang.String OPTION_MAGIC_DRAW_LOG
        Set to true, print the debug/info/warning/error in the logger - default true
        magicdraw.log
        See Also:
        Constant Field Values
      • OPTION_MAGIC_DRAW_UAF

        public static final java.lang.String OPTION_MAGIC_DRAW_UAF
        Set to true, write a UAF model, set to false, write a UPDM model. Default true (UAF)
        magicdraw.uaf
        See Also:
        Constant Field Values
      • OPTION_MAGIC_DRAW_INSTALL_PATH

        @Deprecated
        public static final java.lang.String OPTION_MAGIC_DRAW_INSTALL_PATH
        Deprecated.
        See Also:
        Constant Field Values
      • OPTION_MAGIC_DRAW_DIR

        public static final java.lang.String OPTION_MAGIC_DRAW_DIR
        Set to the MagicDraw install directory, determines whether "profiles" and "modelLibraries" directories should be used to resolve proxies. Default null.
        This option overrides the Option OPTION_MAGIC_DRAW_INSTALL_PATH.
        magicdraw.dir
        See Also:
        Constant Field Values
      • OPTION_MAGIC_DRAW_USED_PROJECTS_DIR

        public static final java.lang.String OPTION_MAGIC_DRAW_USED_PROJECTS_DIR
        Use the directories paths in parameter to resolve proxies. Paths are separated by a comma.
        If the proxy is in several places, the first corresponding path of the property "magicdraw.usedProjects.dir" will be used.
        Default null.
        From MagicDraw 2022.
        magicdraw.usedProjects.dir
        See Also:
        Constant Field Values
    • Constructor Detail

      • MagicDrawOptions

        public MagicDrawOptions()