Class InterMineModelParser

  • All Implemented Interfaces:
    ModelParser

    public class InterMineModelParser
    extends java.lang.Object
    implements ModelParser
    Parse InterMine metadata XML to produce an InterMine Model
    Author:
    Mark Woodbridge
    • 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.
      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 ModelParserException
        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:
        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:
        generateClassDescriptors in interface ModelParser
        Parameters:
        reader - the source model to parse
        packageName - 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.