package uk.ac.ebi.quickgo.ff.loader.ontology;

import uk.ac.ebi.quickgo.ff.files.ontology.ECOSourceFiles;
import uk.ac.ebi.quickgo.model.ontology.eco.EvidenceCodeOntology;

import java.util.Optional;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Loads a complete ECO ontology from a suite of source files.
 *
 * Created by Edd on 11/12/2015.
 */
public class ECOLoader extends AbstractGenericOLoader<ECOSourceFiles, EvidenceCodeOntology> {

    public ECOLoader(ECOSourceFiles sourceFiles) {
        super(sourceFiles);
    }

    @Override
    protected EvidenceCodeOntology newInstance() {
        return new EvidenceCodeOntology();
    }

    @Override
    public EvidenceCodeOntology load() throws Exception{
            EvidenceCodeOntology eco = getInstance();

            // add generic ontology info
            createWithGenericOInfo(EvidenceCodeOntology.NAME_SPACE, null);
            return eco;
    }
}

@@ -170,93 +170,8 @@
 y;%0A%0A
-import java.util.Optional;%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A%0A
 /**%0A
@@ -458,123 +458,8 @@
  %7D%0A%0A
-    @Override%0A    protected EvidenceCodeOntology newInstance() %7B%0A        return new EvidenceCodeOntology();%0A    %7D%0A%0A
     
@@ -523,22 +523,19 @@
 xception
+ 
 %7B%0A
-    
         
@@ -585,20 +585,16 @@
         
-    
 // add g
@@ -614,20 +614,16 @@
 gy info%0A
-    
         
@@ -693,20 +693,16 @@
         
-    
 return e
@@ -703,16 +703,131 @@
 turn eco
+;%0A    %7D%0A%0A    @Override%0A    protected EvidenceCodeOntology newInstance() %7B%0A        return new EvidenceCodeOntology()
 ;%0A    %7D%0A

Reformat code.