package uk.ac.ebi.pride.pubmed.model;

/**
 * Models a 'request' used in a EU PMC response.
 */
public class EupmcRequest {
  String query;
  String resultType;
  boolean synonym;
  String cursorMark;
  int pageSize;
  String sort;

  /**
   * Sets new pageSize.
   *
   * @param pageSize New value of pageSize.
   */
  public void setPageSize(int pageSize) {
    this.pageSize = pageSize;
  }

  /**
   * Sets new resultType.
   *
   * @param resultType New value of resultType.
   */
  public void setResultType(String resultType) {
    this.resultType = resultType;
  }

  /**
   * Gets resultType.
   *
   * @return Value of resultType.
   */
  public String getResultType() {
    return resultType;
  }

  /**
   * Gets pageSize.
   *
   * @return Value of pageSize.
   */
  public int getPageSize() {
    return pageSize;
  }

  /**
   * Sets new sort.
   *
   * @param sort New value of sort.
   */
  public void setSort(String sort) {
    this.sort = sort;
  }

  /**
   * Gets query.
   *
   * @return Value of query.
   */
  public String getQuery() {
    return query;
  }

  /**
   * Gets sort.
   *
   * @return Value of sort.
   */
  public String getSort() {
    return sort;
  }

  /**
   * Gets cursorMark.
   *
   * @return Value of cursorMark.
   */
  public String getCursorMark() {
    return cursorMark;
  }

  /**
   * Sets new synonym.
   *
   * @param synonym New value of synonym.
   */
  public void setSynonym(boolean synonym) {
    this.synonym = synonym;
  }

  /**
   * Sets new cursorMark.
   *
   * @param cursorMark New value of cursorMark.
   */
  public void setCursorMark(String cursorMark) {
    this.cursorMark = cursorMark;
  }

  /**
   * Gets synonym.
   *
   * @return Value of synonym.
   */
  public boolean isSynonym() {
    return synonym;
  }

  /**
   * Sets new query.
   *
   * @param query New value of query.
   */
  public void setQuery(String query) {
    this.query = query;
  }
}

@@ -127,24 +127,30 @@
 String query
+String
 ;%0A  String r
@@ -986,24 +986,30 @@
 * Gets query
+String
 .%0A   *%0A   * 
@@ -1022,32 +1022,38 @@
 n Value of query
+String
 .%0A   */%0A  public
@@ -1068,16 +1068,22 @@
 getQuery
+String
 () %7B%0A   
@@ -1091,24 +1091,30 @@
 return query
+String
 ;%0A  %7D%0A%0A  /**
@@ -1836,24 +1836,30 @@
 ts new query
+String
 .%0A   *%0A   * 
@@ -1870,16 +1870,22 @@
 am query
+String
  New val
@@ -1895,16 +1895,22 @@
 of query
+String
 .%0A   */%0A
@@ -1931,16 +1931,22 @@
 setQuery
+String
 (String 
@@ -1950,16 +1950,22 @@
 ng query
+String
 ) %7B%0A    
@@ -1978,16 +1978,22 @@
 uery
+String
  = query
 ;%0A  
@@ -1988,16 +1988,22 @@
  = query
+String
 ;%0A  %7D%0A%7D%0A

change the request model