public enum MaximumCardinality extends Enum<MaximumCardinality>
Enum Constant and Description |
---|
MANY
Defines a plural reference.
|
ONE
Defines a unary reference.
|
Modifier and Type | Method and Description |
---|---|
static MaximumCardinality |
fromInt(int value)
Resolve an integer to an upper cardinality boundary.
|
int |
toInt()
Convert this upper cardinality boundary to an integer
|
static MaximumCardinality |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MaximumCardinality[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MaximumCardinality ONE
public static final MaximumCardinality MANY
public static MaximumCardinality[] values()
for (MaximumCardinality c : MaximumCardinality.values()) System.out.println(c);
public static MaximumCardinality 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 int toInt()
public static MaximumCardinality fromInt(int value)
value
- The integer representation of an upper cardinality boundaryvalue
Copyright © Contributors to the Eclipse Foundation Licensed under the Eclipse Foundation Specification License – v1.0