Class MagicDrawProfileResourceReader
- java.lang.Object
-
- com.sodius.mdw.metamodel.uml21.io.md.MagicDrawProfileResourceReader
-
public class MagicDrawProfileResourceReader extends java.lang.ObjectProvides a way to load a MagicDraw Resource.
The MagicDraw Elements of the Resource loaded are added in the current Model Resource.
-
-
Constructor Summary
Constructors Constructor Description MagicDrawProfileResourceReader(Model model, java.util.Map<java.lang.String,?> options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidread(java.lang.String path)Reads a MagicDraw Resource and add its elements in the current Data Model.voidreadBPMN()Reads the OMG's BPMN Profile and add its elements in the current Data Model.voidreadEcore()Reads the OMG's Ecore Profile and add its elements in the current Data Model.voidreadSysML()Reads the OMG's SysML Profile and add its elements in the current Data Model.
If the OptionOPTION_OVERRIDE_STANDARD_PROFILESis set to true, the MagicDraw SysML Profile is loaded instead.voidreadUAF()Reads the UAF Profile and add its elements in the current Data Model.voidreadUPDM()Reads the OMG's UPDM Profile and add its elements in the current Data Model.
-
-
-
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 CoreExceptionReads 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 CoreExceptionReads the OMG's SysML Profile and add its elements in the current Data Model.
If the OptionOPTION_OVERRIDE_STANDARD_PROFILESis set to true, the MagicDraw SysML Profile is loaded instead.- Throws:
CoreException- if the model could not be loaded.
-
readUPDM
public void readUPDM() throws CoreExceptionReads 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 CoreExceptionReads 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 CoreExceptionReads 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 CoreExceptionReads the UAF Profile and add its elements in the current Data Model.- Throws:
CoreException- if the model could not be loaded.
-
-