Enum Class ReferenceCardinality
- All Implemented Interfaces:
Serializable
,Comparable<ReferenceCardinality>
,Constable
Cardinality for the
Reference
annotation.
Specifies if the reference is optional and if the component implementation support a single bound service or multiple bound services.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe reference is mandatory and multiple.The reference is mandatory and unary.The reference is optional and multiple.The reference is optional and unary. -
Method Summary
Modifier and TypeMethodDescriptiontoString()
static ReferenceCardinality
Returns the enum constant of this class with the specified name.static ReferenceCardinality[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OPTIONAL
The reference is optional and unary. That is, the reference has a cardinality of0..1
. -
MANDATORY
The reference is mandatory and unary. That is, the reference has a cardinality of1..1
. -
MULTIPLE
The reference is optional and multiple. That is, the reference has a cardinality of0..n
. -
AT_LEAST_ONE
The reference is mandatory and multiple. That is, the reference has a cardinality of1..n
.
-
-
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
-
toString
- Overrides:
toString
in classEnum<ReferenceCardinality>
-