|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<Cardinality>
org.dishevelled.codegen.Cardinality
public enum Cardinality
Cardinality of an attribute or association.
| Enum Constant Summary | |
|---|---|
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]. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
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..*].
| Method Detail |
|---|
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 name
NullPointerException - if the argument is null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||