public enum Multiplicity extends Enum<Multiplicity>
Java class for Multiplicity.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="Multiplicity">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="ZERO_ONE"/>
<enumeration value="ONE"/>
<enumeration value="ONE_MANY"/>
<enumeration value="MANY"/>
</restriction>
</simpleType>
| Modifier and Type | Method and Description |
|---|---|
static Multiplicity |
fromValue(String v) |
String |
value() |
static Multiplicity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Multiplicity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Multiplicity ZERO_ONE
public static final Multiplicity ONE
public static final Multiplicity ONE_MANY
public static final Multiplicity MANY
public static Multiplicity[] values()
for (Multiplicity c : Multiplicity.values()) System.out.println(c);
public static Multiplicity valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String value()
public static Multiplicity fromValue(String v)
Copyright © 2012–2022. All rights reserved.