Interface ModelParser

  • All Known Implementing Classes:
    InterMineModelParser

    public interface ModelParser
    Common interface for parsing source models into InterMine model format.
    Author:
    Richard Smith
    • 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