@@ -0,0 +1,2637 @@
+package uk.ac.ebi.quickgo.client.model.ontology;%0A%0Aimport uk.ac.ebi.quickgo.rest.search.query.QuickGOQuery;%0A%0Aimport javax.validation.constraints.Max;%0Aimport javax.validation.constraints.Min;%0Aimport javax.validation.constraints.NotNull;%0Aimport javax.validation.constraints.Size;%0A%0Aimport static uk.ac.ebi.quickgo.rest.search.DefaultSearchQueryTemplate.DEFAULT_PAGE_NUMBER;%0A%0A/**%0A * A data structure used to store the input parameters a client can submit to the Ontology search enpoint%0A *%0A * Once the comma separated values have been set, then turn then into an object (SimpleFilter) that%0A * encapsulates the list and solr field name to use for that argument.%0A */%0Apublic class OntologyRequest %7B%0A    static final int DEFAULT_ENTRIES_PER_PAGE = 25;%0A    static final int MAX_ENTRIES_PER_PAGE = 100;%0A%0A    @Min(value = 1, message = %22Page number cannot be less than 1%22)%0A    private int page = DEFAULT_PAGE_NUMBER;%0A%0A    @Min(value = 0, message = %22Number of results per page cannot be less than 0%22)%0A    @Max(value = MAX_ENTRIES_PER_PAGE,%0A            message = %22Number of results per page cannot be greater than %22 + MAX_ENTRIES_PER_PAGE)%0A    private int limit = DEFAULT_ENTRIES_PER_PAGE;%0A%0A    @NotNull(message = %22Query cannot be null%22)%0A    @Size(min = 1, message = %22Query cannot be empty%22)%0A    private String query;%0A%0A    private boolean useHighlighting;%0A%0A    private String%5B%5D facets;%0A%0A    private String filterByAspect;%0A%0A    private String filterByType;%0A%0A    public int getPage() %7B%0A        return page;%0A    %7D%0A%0A    public void setPage(int page) %7B%0A        this.page = page;%0A    %7D%0A%0A    public int getLimit() %7B%0A        return limit;%0A    %7D%0A%0A    public void setLimit(int limit) %7B%0A        this.limit = limit;%0A    %7D%0A%0A    public String getQuery() %7B%0A        return query;%0A    %7D%0A%0A    public void setQuery(String query) %7B%0A        this.query = query;%0A    %7D%0A%0A    public boolean isUseHighlighting() %7B%0A        return useHighlighting;%0A    %7D%0A%0A    public void setUseHighlighting(boolean useHighlighting) %7B%0A        this.useHighlighting = useHighlighting;%0A    %7D%0A%0A    public String%5B%5D getFacets() %7B%0A        return facets;%0A    %7D%0A%0A    public void setFacets(String%5B%5D facets) %7B%0A        this.facets = facets;%0A    %7D%0A%0A    public String getFilterByAspect() %7B%0A        return filterByAspect;%0A    %7D%0A%0A    public void setFilterByAspect(String filterByAspect) %7B%0A        this.filterByAspect = filterByAspect;%0A    %7D%0A%0A    public String getFilterByType() %7B%0A        return filterByType;%0A    %7D%0A%0A    public void setFilterByType(String filterByType) %7B%0A        this.filterByType = filterByType;%0A    %7D%0A%0A    public QuickGOQuery createQuery() %7B%0A        return QuickGOQuery.createQuery(query);%0A    %7D%0A%7D

Create an OntologyRequest object capable of handling and validating the ontology search endpoint parameters.