Subversion Repositories eFlore/Archives.cel-v1

Compare Revisions

Ignore whitespace Rev 11 → Rev 12

/trunk/src/org/tela_botanica/client/InventoryItem.java
New file
0,0 → 1,73
package org.tela_botanica.client;
 
public class InventoryItem {
 
private String name=null;
private String nomenclaturalNumber=null;
private String location=null;
private String location_id=null;
private String date=null;
private String complementlocation=null;
private String comment=null;
 
public InventoryItem(String name,String nomenclaturalNumber, String location, String location_id, String date, String complementlocation, String comment) {
 
this.name=name;
this.nomenclaturalNumber=nomenclaturalNumber;
 
// Suppresion indication departementale (on pourrait faire mieux !!)
int pos=location.indexOf(" (" );
if (pos>=0) {
this.location=location.substring(0,pos);
}
else {
this.location=location;
}
this.location_id=location_id;
this.date=date;
this.complementlocation=complementlocation;
this.comment=comment;
}
 
 
public String getLocation() {
return location;
}
 
 
public String getLocation_id() {
return location_id;
}
 
 
public String getName() {
return name;
}
 
 
public String getNomenclaturalNumber() {
return nomenclaturalNumber;
}
 
 
public String getComment() {
return comment;
}
 
 
public String getComplementlocation() {
return complementlocation;
}
 
 
public String getDate() {
return date;
}
}