All Downloads are FREE. Search and download functionalities are using the official Maven repository.

no.ks.fiks.innsyn.schema.ekstern.domain.SaksmappeSakstatusV1 Maven / Gradle / Ivy

There is a newer version: 1.13.2
Show newest version

package no.ks.fiks.innsyn.schema.ekstern.domain;

import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

public enum SaksmappeSakstatusV1 {

    UNDER_BEHANDLING("UNDER_BEHANDLING"),
    AVSLUTTET("AVSLUTTET"),
    UTGAR("UTGAR");
    private final String value;
    private final static Map CONSTANTS = new HashMap();

    static {
        for (SaksmappeSakstatusV1 c: values()) {
            CONSTANTS.put(c.value, c);
        }
    }

    private SaksmappeSakstatusV1(String value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return this.value;
    }

    @JsonValue
    public String value() {
        return this.value;
    }

    @JsonCreator
    public static SaksmappeSakstatusV1 fromValue(String value) {
        SaksmappeSakstatusV1 constant = CONSTANTS.get(value);
        if (constant == null) {
            throw new IllegalArgumentException(value);
        } else {
            return constant;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy