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

io.atlasmap.v2.Multiplicity Maven / Gradle / Ivy

There is a newer version: 2.5.2
Show newest version
package io.atlasmap.v2;

public enum Multiplicity {

    ONE_TO_ONE("OneToOne"),

    ONE_TO_MANY("OneToMany"),

    MANY_TO_ONE("ManyToOne"),

    ZERO_TO_ONE("ZeroToOne"),

    MANY_TO_MANY("ManyToMany");

    private final String value;

    Multiplicity(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static Multiplicity fromValue(String v) {
        for (Multiplicity c: Multiplicity.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy