Commit 417cbe87 authored by Matija Obreza's avatar Matija Obreza

Arrays where appropriate

parent d0adf625
Pipeline #1017 passed with stage
in 24 seconds
......@@ -109,7 +109,7 @@ public class AccessionJson {
/** The bred code. */
@JsonProperty(value = Accession.BREDCODE)
private String bredCode;
private String[] bredCode;
/** The ancest. */
@JsonProperty(value = Accession.ANCEST)
......@@ -151,6 +151,19 @@ public class AccessionJson {
@JsonProperty(value = Accession.CROPNAME)
private String cropName;
/** Crop name */
@JsonProperty(value = Accession.ACCENAME)
private String[] acceName;
/** Crop name */
@JsonProperty(value = Accession.OTHERNUMB)
private String[] otherNumb;
public AccessionJson() {
this.geo = new GeoJson();
this.coll = new CollectingJson();
}
/**
* Gets the version.
*
......@@ -531,7 +544,7 @@ public class AccessionJson {
*
* @return the bred code
*/
public String getBredCode() {
public String[] getBredCode() {
return bredCode;
}
......@@ -540,7 +553,7 @@ public class AccessionJson {
*
* @param bredCode the new bred code
*/
public void setBredCode(final String bredCode) {
public void setBredCode(final String[] bredCode) {
this.bredCode = bredCode;
}
......@@ -723,4 +736,33 @@ public class AccessionJson {
public String getCropName() {
return cropName;
}
/**
* @return the acceName
*/
public String[] getAcceName() {
return acceName;
}
/**
* @param acceName the acceName to set
*/
public void setAcceName(String[] acceName) {
this.acceName = acceName;
}
/**
* @return the otherNumb
*/
public String[] getOtherNumb() {
return otherNumb;
}
/**
* @param otherNumb the otherNumb to set
*/
public void setOtherNumb(String[] otherNumb) {
this.otherNumb = otherNumb;
}
}
......@@ -43,15 +43,15 @@ public class CollectingJson {
/** The coll code. */
@JsonProperty(value = Collecting.COLLCODE)
private String collCode;
private String[] collCode;
/** The coll name. */
@JsonProperty(value = Collecting.COLLNAME)
private String collName;
private String[] collName;
/** The coll inst address. */
@JsonProperty(value = Collecting.COLLINSTADDRESS)
private String collInstAddress;
private String[] collInstAddress;
/** The coll miss id. */
@JsonProperty(value = Collecting.COLLMISSID)
......@@ -134,7 +134,7 @@ public class CollectingJson {
*
* @return the coll code
*/
public String getCollCode() {
public String[] getCollCode() {
return collCode;
}
......@@ -143,7 +143,7 @@ public class CollectingJson {
*
* @param collCode the new coll code
*/
public void setCollCode(final String collCode) {
public void setCollCode(final String[] collCode) {
this.collCode = collCode;
}
......@@ -152,7 +152,7 @@ public class CollectingJson {
*
* @return the coll name
*/
public String getCollName() {
public String[] getCollName() {
return collName;
}
......@@ -161,7 +161,7 @@ public class CollectingJson {
*
* @param collName the new coll name
*/
public void setCollName(final String collName) {
public void setCollName(final String[] collName) {
this.collName = collName;
}
......@@ -170,7 +170,7 @@ public class CollectingJson {
*
* @return the coll inst address
*/
public String getCollInstAddress() {
public String[] getCollInstAddress() {
return collInstAddress;
}
......@@ -179,7 +179,7 @@ public class CollectingJson {
*
* @param collInstAddress the new coll inst address
*/
public void setCollInstAddress(final String collInstAddress) {
public void setCollInstAddress(final String[] collInstAddress) {
this.collInstAddress = collInstAddress;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment