package uk.ac.ebi.quickgo.annotation.validation.model;

import java.util.List;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.core.io.Resource;
import org.springframework.stereotype.Component;

/**
 * Properties for loading validation data for annotation filtering.
 *
 * @author Tony Wardell
 * Date: 25/11/2016
 * Time: 12:16
 * Created with IntelliJ IDEA.
 */
@Component
@ConfigurationProperties(prefix = "annotation.validation")
public class ValidationProperties {

    private int chunk;
    private Resource validationResource;
    private List<String> referenceDbs;

    public int getChunk() {
        return chunk;
    }

    public void setChunk(int chunk) {
        this.chunk = chunk;
    }

    public Resource getValidationResource() {
        return validationResource;
    }

    public void setValidationResource(Resource validationResource) {
        this.validationResource = validationResource;
    }

    public List<String> getReferenceDbs() {
        return referenceDbs;
    }

    public void setReferenceDbs(List<String> referenceDbs) {
        this.referenceDbs = referenceDbs;
    }
}

@@ -631,133 +631,457 @@
     
-public int getChunk() %7B%0A        return chunk;%0A    %7D%0A%0A    public void setChunk(int chunk) %7B%0A        this.chunk = chunk;%0A    %7D%0A
+/**%0A     * The batch size to process when reading validation properties.%0A     * @return chunk size in number of records.%0A     */%0A    public int getChunk() %7B%0A        return chunk;%0A    %7D%0A%0A    /**%0A     * The batch size to process when reading validation properties.%0A     * @param chunk%0A     */%0A    public void setChunk(int chunk) %7B%0A        this.chunk = chunk;%0A    %7D%0A%0A    /**%0A     * The source of validating data.%0A     * @return resource to use.%0A     */
 %0A   
@@ -1157,32 +1157,86 @@
 esource;%0A    %7D%0A%0A
+    /**%0A     * The source of validating data.%0A     */%0A
     public void 
@@ -1357,83 +1357,342 @@
     
-public List%3CString%3E getReferenceDbs() %7B%0A        return referenceDbs;%0A    %7D%0A
+/**%0A     * A list of database ids that are valid to use when filtering annotations by reference.%0A     * @return A list of database ids.%0A     */%0A    public List%3CString%3E getReferenceDbs() %7B%0A        return referenceDbs;%0A    %7D%0A%0A    /**%0A     * A list of database codes that are valid to use when filtering annotations by reference.%0A     */
 %0A   

Add missing javadoc.