Subversion Repositories eFlore/Archives.cel-v1

Rev

Rev 13 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
12 ddelon 1
package org.tela_botanica.client;
2
 
3
public class InventoryItem {
4
 
5
 
6
	private String name=null;
7
	private String nomenclaturalNumber=null;
8
	private String location=null;
9
	private String location_id=null;
10
	private String date=null;
11
	private String complementlocation=null;
12
	private String comment=null;
13
 
14
 
15
	public InventoryItem(String name,String nomenclaturalNumber, String location, String location_id, String date, String complementlocation, String comment) {
16
 
17
 
18
		this.name=name;
19
		this.nomenclaturalNumber=nomenclaturalNumber;
20
 
21
	 // Suppresion indication departementale (on pourrait faire mieux !!)
22
		int pos=location.indexOf(" (" );
23
	    if (pos>=0) {
24
	    	this.location=location.substring(0,pos);
25
	    }
26
		else {
27
			 this.location=location;
28
		}
29
 
30
		this.location_id=location_id;
31
		this.date=date;
32
		this.complementlocation=complementlocation;
33
		this.comment=comment;
34
 
35
	}
36
 
37
 
38
	public String getLocation() {
39
		return location;
40
	}
41
 
42
 
43
	public String getLocation_id() {
44
		return location_id;
45
	}
46
 
47
 
48
	public String getName() {
49
		return name;
50
	}
51
 
52
 
53
	public String getNomenclaturalNumber() {
54
		return nomenclaturalNumber;
55
	}
56
 
57
 
58
	public String getComment() {
59
		return comment;
60
	}
61
 
62
 
63
	public String getComplementlocation() {
64
		return complementlocation;
65
	}
66
 
67
 
68
	public String getDate() {
69
		return date;
70
	}
71
 
72
 
73
}