Class MagicDrawProfileResourceReader


  • public class MagicDrawProfileResourceReader
    extends java.lang.Object
    Provides a way to load a MagicDraw Resource.
    The MagicDraw Elements of the Resource loaded are added in the current Model Resource.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void read​(java.lang.String path)
      Reads a MagicDraw Resource and add its elements in the current Data Model.
      void readBPMN()
      Reads the OMG's BPMN Profile and add its elements in the current Data Model.
      void readEcore()
      Reads the OMG's Ecore Profile and add its elements in the current Data Model.
      void readSysML()
      Reads the OMG's SysML Profile and add its elements in the current Data Model.
      If the Option OPTION_OVERRIDE_STANDARD_PROFILES is set to true, the MagicDraw SysML Profile is loaded instead.
      void readUAF()
      Reads the UAF Profile and add its elements in the current Data Model.
      void readUPDM()
      Reads the OMG's UPDM Profile and add its elements in the current Data Model.
      • Methods inherited from class java.lang.Object

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

      • MagicDrawProfileResourceReader

        public MagicDrawProfileResourceReader​(Model model,
                                              java.util.Map<java.lang.String,​?> options)
    • Method Detail

      • read

        public void read​(java.lang.String path)
                  throws CoreException
        Reads a MagicDraw Resource and add its elements in the current Data Model.
        Parameters:
        path - the path of the MagicDraw Resource to load in a Model
        Throws:
        CoreException - if the model could not be loaded. Reasons include:
        • The path is not valid.
        • The connector failed to read the resource located by the uri.
      • readSysML

        public void readSysML()
                       throws CoreException
        Reads the OMG's SysML Profile and add its elements in the current Data Model.
        If the Option OPTION_OVERRIDE_STANDARD_PROFILES is set to true, the MagicDraw SysML Profile is loaded instead.
        Throws:
        CoreException - if the model could not be loaded.
      • readUPDM

        public void readUPDM()
                      throws CoreException
        Reads the OMG's UPDM Profile and add its elements in the current Data Model.
        Throws:
        CoreException - if the model could not be loaded.
      • readEcore

        public void readEcore()
                       throws CoreException
        Reads the OMG's Ecore Profile and add its elements in the current Data Model.
        Throws:
        CoreException - if the model could not be loaded.
      • readBPMN

        public void readBPMN()
                      throws CoreException
        Reads the OMG's BPMN Profile and add its elements in the current Data Model.
        Throws:
        CoreException - if the model could not be loaded.
      • readUAF

        public void readUAF()
                     throws CoreException
        Reads the UAF Profile and add its elements in the current Data Model.
        Throws:
        CoreException - if the model could not be loaded.