/* * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Enum.java to edit this template */ package com.megatim.fdxcommons.model.enumeration; import com.fasterxml.jackson.annotation.JsonValue; import com.megatim.fdxcommons.model.search.EnumValue; /** * * @author ASUS */ public enum StatutReferentiel { ARCHIVE("ARCHIVE"), EN_PREPARATION("EN PREPARATION"), EN_COURS("EN COURS"); private final String value; private StatutReferentiel(String value) { this.value = value; } @JsonValue public String getValue() { return value; } @EnumValue public static StatutReferentiel fromValeur(String value) { switch (value) { case "ARCHIVE": return StatutReferentiel.ARCHIVE; case "EN PREPARATION": return StatutReferentiel.EN_PREPARATION; case "EN COURS": return StatutReferentiel.EN_COURS; default: return null; } } @Override public String toString() { return value; } }