![JAR search and dependency download from the Maven repository](/logo.png)
com.evasion.entity.Civilite Maven / Gradle / Ivy
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.evasion.entity;
import java.util.ArrayList;
import java.util.List;
/**
* Titre de civilite d'une personne.
*
* Utilisation de la publication europenne suivante comme reference:
* http://publications.europa.eu/code/fr/fr-5000300.htm
*
* @author sebastien.glon
*/
public enum Civilite {
monsieur,
madame,
mademoiselle,
maitre,
docteur,
professeur,
majeste,
excellence;
private String toString;
Civilite(String toString) {
this.toString = toString;
}
Civilite() {
}
@Override
public String toString() {
return ((toString != null) ? toString : super.toString());
}
public List valueList() {
List list = new ArrayList();
for (Enum e : values()) {
String name = e.name();
list.add(name);
}
return list;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy