Package jadex.bpmn
Class BpmnModelLoader
- java.lang.Object
-
- jadex.commons.AbstractModelLoader
-
- jadex.bpmn.BpmnModelLoader
-
public class BpmnModelLoader extends AbstractModelLoader
Loader for eclipse STP BPMN models (.bpmn files).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jadex.commons.AbstractModelLoader
AbstractModelLoader.BrokenModel
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
FILE_EXTENSION_BPMN
The BPMN file extension.static java.lang.String
FILE_EXTENSION_BPMN2
The BPMN 2 file extension.-
Fields inherited from class jadex.commons.AbstractModelLoader
extensions, modelcache, registered
-
-
Constructor Summary
Constructors Constructor Description BpmnModelLoader()
Create a new BPMN model loader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ICacheableModel
doLoadModel(java.lang.String name, java.lang.String[] imports, ResourceInfo info, java.lang.ClassLoader classloader, java.lang.Object context)
Load a model.MBpmnModel
loadBpmnModel(java.lang.String name, java.lang.String[] imports, java.lang.ClassLoader classloader, java.lang.Object context)
Load a BPMN model.-
Methods inherited from class jadex.commons.AbstractModelLoader
clearModelCache, deregisterModel, getCachedModel, getResourceInfo, getResourceInfo, getResourceInfo0, loadModel, loadModel, registerModel
-
-
-
-
Field Detail
-
FILE_EXTENSION_BPMN
public static final java.lang.String FILE_EXTENSION_BPMN
The BPMN file extension.- See Also:
- Constant Field Values
-
FILE_EXTENSION_BPMN2
public static final java.lang.String FILE_EXTENSION_BPMN2
The BPMN 2 file extension.- See Also:
- Constant Field Values
-
-
Method Detail
-
loadBpmnModel
public MBpmnModel loadBpmnModel(java.lang.String name, java.lang.String[] imports, java.lang.ClassLoader classloader, java.lang.Object context) throws java.lang.Exception
Load a BPMN model.- Parameters:
name
- The filename or logical name (resolved via imports and extensions).imports
- The imports, if any.- Throws:
java.lang.Exception
-
doLoadModel
protected ICacheableModel doLoadModel(java.lang.String name, java.lang.String[] imports, ResourceInfo info, java.lang.ClassLoader classloader, java.lang.Object context) throws java.lang.Exception
Load a model.- Specified by:
doLoadModel
in classAbstractModelLoader
- Parameters:
name
- The original name (i.e. not filename).info
- The resource info.- Throws:
java.lang.Exception
-
-