Package jadex.micro

Class MicroModelLoader

    • Field Detail

      • FILE_EXTENSION_MICRO

        public static final java.lang.String FILE_EXTENSION_MICRO
        The component file extension.
        See Also:
        Constant Field Values
    • Constructor Detail

      • MicroModelLoader

        public MicroModelLoader()
        Create a new BPMN model loader.
    • Method Detail

      • loadComponentModel

        public MicroModel 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 class AbstractModelLoader
        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 class AbstractModelLoader
        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