Package org.intermine.metadata
Interface ModelParser
-
- All Known Implementing Classes:
InterMineModelParser
public interface ModelParserCommon interface for parsing source models into InterMine model format.- Author:
- Richard Smith
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Set<ClassDescriptor>generateClassDescriptors(java.io.Reader fileReader, java.lang.String packageName)Read source information and construct a list of InterMine ClassDescriptorsModelprocess(java.io.Reader reader)Read source model information and construct a InterMine Model object.
-
-
-
Method Detail
-
process
Model process(java.io.Reader reader) throws ModelParserException
Read source model information and construct a InterMine Model object.- Parameters:
reader- the source model to parse- Returns:
- the InterMine Model created
- Throws:
ModelParserException- if Model not created successfully
-
generateClassDescriptors
java.util.Set<ClassDescriptor> generateClassDescriptors(java.io.Reader fileReader, java.lang.String packageName) throws ModelParserException
Read source information and construct a list of InterMine ClassDescriptors- Parameters:
fileReader- The object to read data from.packageName- The name of the package to load classes into.- Returns:
- the class descriptors constructed from their serialised form.
- Throws:
ModelParserException- if Model not created successfully
-
-