Package com.sodius.mdw.metamodel.sa
Enum CardinalityKind
- java.lang.Object
-
- java.lang.Enum<CardinalityKind>
-
- com.sodius.mdw.metamodel.sa.CardinalityKind
-
- All Implemented Interfaces:
Serializable
,Comparable<CardinalityKind>
public enum CardinalityKind extends Enum<CardinalityKind>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MANY
ONE_OR_MANY
ONLY_ONE
UNKNOW
ZERO_ONE_OR_MANY
ZERO_OR_ONE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CardinalityKind
getCardinality(int lower, int upper)
static CardinalityKind
getCardinality(String literal)
String
getLiteral()
int
getLower()
String
getName()
int
getUpper()
static CardinalityKind
valueOf(String name)
Returns the enum constant of this type with the specified name.static CardinalityKind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MANY
public static final CardinalityKind MANY
-
ONE_OR_MANY
public static final CardinalityKind ONE_OR_MANY
-
ONLY_ONE
public static final CardinalityKind ONLY_ONE
-
UNKNOW
public static final CardinalityKind UNKNOW
-
ZERO_ONE_OR_MANY
public static final CardinalityKind ZERO_ONE_OR_MANY
-
ZERO_OR_ONE
public static final CardinalityKind ZERO_OR_ONE
-
-
Method Detail
-
values
public static CardinalityKind[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CardinalityKind c : CardinalityKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CardinalityKind valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getLiteral
public String getLiteral()
-
getName
public String getName()
-
getLower
public int getLower()
-
getUpper
public int getUpper()
-
getCardinality
public static CardinalityKind getCardinality(int lower, int upper)
-
getCardinality
public static CardinalityKind getCardinality(String literal)
-
-