Package org.intermine.metadata
Class InterMineModelParser
- java.lang.Object
-
- org.intermine.metadata.InterMineModelParser
-
- All Implemented Interfaces:
ModelParser
public class InterMineModelParser extends java.lang.Object implements ModelParser
Parse InterMine metadata XML to produce an InterMine Model
-
-
Constructor Summary
Constructors Constructor Description InterMineModelParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<ClassDescriptor>generateClassDescriptors(java.io.Reader reader, java.lang.String packageName)Read source model information in InterMine XML format and create a set of ClassDescriptors.Modelprocess(java.io.Reader reader)Read source model information in InterMine XML format and construct a InterMine Model object.
-
-
-
Method Detail
-
process
public Model process(java.io.Reader reader) throws ModelParserException
Read source model information in InterMine XML format and construct a InterMine Model object.- Specified by:
processin interfaceModelParser- Parameters:
reader- the source model to parse- Returns:
- the InterMine Model created
- Throws:
ModelParserException- if something goes wrong with parsing the class descriptors.
-
generateClassDescriptors
public java.util.Set<ClassDescriptor> generateClassDescriptors(java.io.Reader reader, java.lang.String packageName) throws ModelParserException
Read source model information in InterMine XML format and create a set of ClassDescriptors.- Specified by:
generateClassDescriptorsin interfaceModelParser- Parameters:
reader- the source model to parsepackageName- the package name that all the classes should be in- Returns:
- a set of ClassDescriptors
- Throws:
ModelParserException- if something goes wrong with parsing the class descriptors.
-
-