Page History
...
Loader interfaces must extend the interface org.LexGrid.LexBIG.Extensions.Load.Loader from the lbInterfaces project and implementations of your new interface must also extend the abstract class org.LexGrid.LexBIG.Impl.loaders.BaseLoader in the lbImpl project. Let's take as an example the MedDRA loader interfaces and classes as it is a relatively simple implementation:.
The extension of Loader is org.LexGrid.LexBIG.Extensions.Load.MedDRA_Loader.java and is found in the lbInterfaces project.
Code Block | ||||
---|---|---|---|---|
| ||||
public interface MedDRA_Loader extends Loader { public final static String name = "MedDRALoader"; public final static String description = "This loader loads MedDRA files into the LexGrid format."; |
The implementation of MedDRA_Loader (and extension of BaseLoader) is org.LexGrid.LexBIG.Impl.loaders.MedDRALoaderImpl.
Code Block | ||||
---|---|---|---|---|
| ||||
public class MedDRALoaderImpl extends BaseLoader implements MedDRA_Loader |
This defines a load and validation methods and creates initialized class attributes name and description. The name of this interface will eventually be used by the LexEVS extension function to call the loader into existence. (Loaders are always extensions to LexEVS). (Extension code here)
Implementation Example and Discussion
...