Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 1331 → Rev 1332

/trunk/src/org/tela_botanica/client/modeles/objets/ReferentielCommune.java
11,27 → 11,27
 
private String commune=null;
private String departement=null;
private String codeInsee=null;
public ReferentielCommune() {
}
 
/**
* @param commune
* @param departement
*/
public ReferentielCommune(String commune, String departement) {
public ReferentielCommune(String commune, String code) {
this.commune = commune;
this.departement = departement;
 
if(code.length() == 5) {
codeInsee = code;
departement = code.substring(0,2);
} else {
departement = code;
}
}
 
 
 
public String getCommune() {
return commune;
}
41,7 → 41,8
return departement;
}
 
public String getCodeInsee() {
return codeInsee;
}
 
 
}