public enum AttributeCardinality extends Enum<AttributeCardinality> implements Serializable
| Enum Constant and Description |
|---|
ANY_NUMBER_ORDERED |
ANY_NUMBER_UNORDERED |
AT_LEAST_ONE_ORDERED |
AT_LEAST_ONE_UNORDERED |
AT_MOST_ONE |
ONE_ONLY |
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Return the default description of the cardinality.
|
String |
getName()
Return the default name of the cardinality.
|
int |
getOrdinal()
Return the numeric representation of the cardinality.
|
String |
toString()
toString() JSON-style
|
static AttributeCardinality |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AttributeCardinality[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AttributeCardinality UNKNOWN
public static final AttributeCardinality AT_MOST_ONE
public static final AttributeCardinality ONE_ONLY
public static final AttributeCardinality AT_LEAST_ONE_ORDERED
public static final AttributeCardinality AT_LEAST_ONE_UNORDERED
public static final AttributeCardinality ANY_NUMBER_ORDERED
public static final AttributeCardinality ANY_NUMBER_UNORDERED
public static AttributeCardinality[] values()
for (AttributeCardinality c : AttributeCardinality.values()) System.out.println(c);
public static AttributeCardinality 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 getOrdinal()
public String getName()
public String getDescription()
public String toString()
toString in class Enum<AttributeCardinality>Copyright © 2018–2020 ODPi. All rights reserved.