public enum Cardinality extends Enum<Cardinality>
Enum Constant and Description |
---|
OneToMany
A cardinality of class or interface --> attribute or association target
[1..*] . |
StrictlyOne
A cardinality of class or interface --> attribute or association target
[1] . |
ZeroToMany
A cardinality of class or interface --> attribute or association target
[0..*] . |
ZeroToOne
A cardinality of class or interface --> attribute or association target
[0..1] . |
Modifier and Type | Method and Description |
---|---|
static Cardinality |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Cardinality[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Cardinality ZeroToOne
[0..1]
.public static final Cardinality StrictlyOne
[1]
.public static final Cardinality ZeroToMany
[0..*]
.public static final Cardinality OneToMany
[1..*]
.public static Cardinality[] values()
for (Cardinality c : Cardinality.values()) System.out.println(c);
public static Cardinality 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 nullCopyright (c) 2004-2013 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).