Package de.elo.ix.client
Enum Class Cardinality
- All Implemented Interfaces:
Serializable
,Comparable<Cardinality>
,Constable
Aspect cardinality.
- Since:
- 20.00.000.100
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionExactly one object.At least one object.At most one object.Any number of objects. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if this cardinality is MANDATORY or MANDATORY_MANY.boolean
isMany()
Returns true if this cardinality is MANDATORY_MANY or OPTIONAL_MANY.static Cardinality
Returns the enum constant of this class with the specified name.static Cardinality[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OPTIONAL
At most one object. By other words: 0 or 1 object. -
MANDATORY
Exactly one object. -
MANDATORY_MANY
At least one object. By other words: 1...n objects. -
OPTIONAL_MANY
Any number of objects. By other words: 0...n objects.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
isMandatory
public boolean isMandatory()Returns true if this cardinality is MANDATORY or MANDATORY_MANY. -
isMany
public boolean isMany()Returns true if this cardinality is MANDATORY_MANY or OPTIONAL_MANY.
-