Model Loaders

org.eclipse.jet.modelLoaders

1.0

Define how models consumed by JET transformations and the JET <c:load> tag are loaded from the file system.

<!ELEMENT extension ((loader | defaultTypeLoader | loadableType)+)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT loader (type*)>

<!ATTLIST loader

id           CDATA #REQUIRED

name         CDATA #REQUIRED

class        CDATA #REQUIRED

dynamicTypes (true | false) "false">

Defines a model loader, which is a Java class responsible for loading a model into memory given an URL to the model, or given a string representation of the model.



<!ELEMENT defaultTypeLoader EMPTY>

<!ATTLIST defaultTypeLoader

fileType CDATA #REQUIRED

id       CDATA #REQUIRED>

Defines the default model loader for a given file type.



<!ELEMENT loadableType EMPTY>

<!ATTLIST loadableType

fileType CDATA #REQUIRED

id       CDATA #REQUIRED>

Extends the types supported a Model Loader. This element may be used by plug-ins other than the plug-in declaring the model loader.



<!ELEMENT type EMPTY>

<!ATTLIST type

fileType CDATA #REQUIRED>

Defines a file type that is understood by the model loader.



[Enter extension point usage example here.]

The method org.eclipse.jet.JET2Platform.getModelLoaderManager() returns an instance of org.eclipse.jet.runtime.model.ILoaderManager which provides access to model loaders created with this extension point.

[Enter information about supplied implementation of this extension point.]