package uk.bl.api.models; import java.util.List; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; @XmlRootElement(name = "results") public class Results { private List<Result> results; @XmlElement(name = "result") public List<Result> getResults() { return results; } public void setResults(List<Result> results) { this.results = results; } @Override public String toString() { return "Results [results=" + results + "]"; } }