public class BDIModelLoader extends AbstractModelLoader
AbstractModelLoader.BrokenModel
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FILE_EXTENSION_BDIV3 |
static java.lang.String |
FILE_EXTENSION_BDIV3_FIRST
The component file extension.
|
static java.lang.String |
FILE_EXTENSION_BDIV3_SECOND |
protected BDIClassReader |
reader
The xml reader.
|
extensions, modelcache, registered
Constructor and Description |
---|
BDIModelLoader()
Create a new BPMN model loader.
|
Modifier and Type | Method and 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.
|
protected ResourceInfo |
getResourceInfo(java.lang.String name,
java.lang.String extension,
java.lang.String[] imports,
java.lang.ClassLoader classloader)
Find the file for a given name.
|
BDIModel |
loadComponentModel(java.lang.String name,
java.lang.String[] imports,
IResourceIdentifier clkey,
java.lang.ClassLoader classloader,
java.lang.Object context)
Load a component model.
|
clearModelCache, deregisterModel, getCachedModel, getResourceInfo, getResourceInfo0, loadModel, loadModel, registerModel
public static final java.lang.String FILE_EXTENSION_BDIV3_FIRST
public static final java.lang.String FILE_EXTENSION_BDIV3_SECOND
public static final java.lang.String FILE_EXTENSION_BDIV3
protected BDIClassReader reader
public BDIModel loadComponentModel(java.lang.String name, java.lang.String[] imports, IResourceIdentifier clkey, java.lang.ClassLoader classloader, java.lang.Object context) throws java.lang.Exception
name
- The filename or logical name (resolved via imports and extensions).imports
- The imports, if any.java.lang.Exception
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
doLoadModel
in class AbstractModelLoader
name
- The original name (i.e. not filename).info
- The resource info.java.lang.Exception
protected ResourceInfo getResourceInfo(java.lang.String name, java.lang.String extension, java.lang.String[] imports, java.lang.ClassLoader classloader) throws java.lang.Exception
getResourceInfo
in class AbstractModelLoader
name
- The filename or logical name (resolved via imports and extension).extension
- The required extension.imports
- The imports, if any.java.lang.Exception