Subversion Repositories eFlore/Applications.del

Rev

Rev 1886 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1886 mathias 1
package org.tela_botanica.del.client.utils;
2
 
3
/**
4
 * Juste histoire de pouvoir stocker le nom scientifique, le numéro nomenclatural et
5
 * le statut "retenu" dans un même endroit, pour nourrir ensuite l'autocomplétion
6
 *
7
 * @author mathias
8
 */
9
public class InfosNomPourAutocompletion {
10
 
11
	/** numéro nomenclatural - un int suffit largement */
12
	protected int nn;
13
	/** nom scientifique (complet, avec auteur) */
14
	protected String ns;
15
	/** si true, désigne un nom retenu */
16
	protected boolean retenu;
17
 
18
	public InfosNomPourAutocompletion(int nn, String ns, boolean retenu) {
19
		this.nn = nn;
20
		this.ns = ns;
21
		this.retenu = retenu;
22
	}
23
 
24
	// le parseur JSON produit des double, soyons courtois
25
	public InfosNomPourAutocompletion(double nn, String ns, boolean retenu) {
26
		this((int)nn, ns, retenu);
27
	}
28
 
29
	public int getNn() {
30
		return nn;
31
	}
32
	public String getNs() {
33
		return ns;
34
	}
35
	public boolean isRetenu() {
36
		return retenu;
37
	}
38
 
39
	public void setNn(int nn) {
40
		this.nn = nn;
41
	}
42
	public void setNs(String ns) {
43
		this.ns = ns;
44
	}
45
	public void setRetenu(boolean retenu) {
46
		this.retenu = retenu;
47
	}
48
}