package com.megatim.fdxcommons.model.referentiel.natureproduction; /** * * @author ASUS */ public enum NatureProduction { REFERENTIELLE("REFERENTIELLE"), CUMMULATIVE("CUMMULATIVE"); private final String value; private NatureProduction(String value) { this.value = value; } public String getValue() { return value; } public static NatureProduction fromValue(String value) { switch (value) { case "REFERENTIELLE": return NatureProduction.REFERENTIELLE; case "CUMMULATIVE": return NatureProduction.CUMMULATIVE; default: return null; } } @Override public String toString() { return value; } }