Package jadex.bdiv3
Class BDIModelLoader
- java.lang.Object
-
- jadex.commons.AbstractModelLoader
-
- jadex.bdiv3.BDIModelLoader
-
public class BDIModelLoader extends AbstractModelLoader
-
-
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_BDIV3
The component file extension.protected BDIClassReader
reader
The xml reader.-
Fields inherited from class jadex.commons.AbstractModelLoader
extensions, modelcache, registered
-
-
Constructor Summary
Constructors Constructor Description BDIModelLoader()
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.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.void
setGenerator(IBDIClassGenerator gen)
Set the generator.-
Methods inherited from class jadex.commons.AbstractModelLoader
clearModelCache, deregisterModel, getCachedModel, getResourceInfo, getResourceInfo0, loadModel, loadModel, registerModel
-
-
-
-
Field Detail
-
FILE_EXTENSION_BDIV3
public static final java.lang.String FILE_EXTENSION_BDIV3
The component file extension.- See Also:
- Constant Field Values
-
reader
protected BDIClassReader reader
The xml reader.
-
-
Method Detail
-
setGenerator
public void setGenerator(IBDIClassGenerator gen)
Set the generator.- Parameters:
gen
- the gen to set
-
loadComponentModel
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
Load a component 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
-
getResourceInfo
protected ResourceInfo getResourceInfo(java.lang.String name, java.lang.String extension, java.lang.String[] imports, java.lang.ClassLoader classloader) throws java.lang.Exception
Find the file for a given name.- Overrides:
getResourceInfo
in classAbstractModelLoader
- Parameters:
name
- The filename or logical name (resolved via imports and extension).extension
- The required extension.imports
- The imports, if any.- Returns:
- The resource info identifying the file.
- Throws:
java.lang.Exception
-
-