org.intermine.modelproduction.xml
Class InterMineModelParser

java.lang.Object
  extended by org.intermine.modelproduction.xml.InterMineModelParser
All Implemented Interfaces:
ModelParser

public class InterMineModelParser
extends java.lang.Object
implements ModelParser

Parse InterMine metadata XML to produce a InterMine Model


Constructor Summary
InterMineModelParser()
           
 
Method Summary
 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.
 Model process(java.io.Reader reader)
          Read source model information in InterMine XML format and construct a InterMine Model object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterMineModelParser

public InterMineModelParser()
Method Detail

process

public Model process(java.io.Reader reader)
              throws java.lang.Exception
Read source model information in InterMine XML format and construct a InterMine Model object.

Specified by:
process in interface ModelParser
Parameters:
reader - the source model to parse
Returns:
the InterMine Model created
Throws:
java.lang.Exception - if Model not created successfully

generateClassDescriptors

public java.util.Set<ClassDescriptor> generateClassDescriptors(java.io.Reader reader,
                                                               java.lang.String packageName)
                                                        throws java.lang.Exception
Read source model information in InterMine XML format and create a set of ClassDescriptors.

Parameters:
reader - the source model to parse
packageName - the package name that all the classes should be in
Returns:
a set of
Throws:
java.lang.Exception - if Model not created successfully