39 lines
932 B
Java
39 lines
932 B
Java
package it.acxent.anag;
|
|
|
|
import it.acxent.db.ApplParmFull;
|
|
import it.acxent.util.StringTokenizer;
|
|
import it.acxent.util.Vectumerator;
|
|
|
|
public class Lang extends _AnagAdapter {
|
|
private String descrizione;
|
|
|
|
public Lang() {}
|
|
|
|
public Lang(ApplParmFull newApplParmFull) {
|
|
super(newApplParmFull);
|
|
}
|
|
|
|
public String getDescrizione() {
|
|
return (this.descrizione == null) ? "" : this.descrizione;
|
|
}
|
|
|
|
public void setDescrizione(String descrizione) {
|
|
this.descrizione = descrizione;
|
|
}
|
|
|
|
public Vectumerator findLingue() {
|
|
Vectumerator vec = new Vectumerator();
|
|
String lingue = getParm("TAGLIE_LINGUE").getTesto();
|
|
StringTokenizer st = new StringTokenizer(lingue, ",");
|
|
while (st.hasMoreTokens()) {
|
|
Lang lg = new Lang(getApFull());
|
|
lg.setDescrizione(st.nextToken());
|
|
vec.add(lg);
|
|
}
|
|
return vec;
|
|
}
|
|
|
|
protected boolean isDatabaseBean() {
|
|
return false;
|
|
}
|
|
}
|