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

de.adorsys.xs2a.adapter.fiducia.model.FiduciaExecutionRule Maven / Gradle / Ivy

There is a newer version: 0.1.18-alpha-release-candidate
Show newest version
package de.adorsys.xs2a.adapter.fiducia.model;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

public enum FiduciaExecutionRule {
    FOLLOWING("following"),

    // incorrect spelling
    PRECEDING("preceeding");

    private String value;

    FiduciaExecutionRule(String value) {
        this.value = value;
    }

    @JsonCreator
    public static FiduciaExecutionRule fromValue(String value) {
        for (FiduciaExecutionRule e : FiduciaExecutionRule.values()) {
            if (e.value.equals(value)) {
                return e;
            }
        }
        return null;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy