Reference annotation.
Specifies if the reference is optional and if the component implementation support a single bound service or multiple bound services.
| Modifier and Type | Field and Description |
|---|---|
| public static final ReferenceCardinality | AT_LEAST_ONE
The reference is mandatory and multiple. |
| public static final ReferenceCardinality | MANDATORY
The reference is mandatory and unary. |
| public static final ReferenceCardinality | MULTIPLE
The reference is optional and multiple. |
| public static final ReferenceCardinality | OPTIONAL
The reference is optional and unary. |
| private final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | toString()
Overrides java. Returns the name of this enum constant, as contained in the declaration. |
| public static ReferenceCardinality | |
| public static ReferenceCardinality[] |
| AT_LEAST_ONE | back to summary |
|---|---|
| public static final ReferenceCardinality AT_LEAST_ONE The reference is mandatory and multiple. That is, the reference has a
cardinality of | |
| MANDATORY | back to summary |
|---|---|
| public static final ReferenceCardinality MANDATORY The reference is mandatory and unary. That is, the reference has a
cardinality of | |
| MULTIPLE | back to summary |
|---|---|
| public static final ReferenceCardinality MULTIPLE The reference is optional and multiple. That is, the reference has a
cardinality of | |
| OPTIONAL | back to summary |
|---|---|
| public static final ReferenceCardinality OPTIONAL The reference is optional and unary. That is, the reference has a
cardinality of | |
| value | back to summary |
|---|---|
| private final String value | |
| ReferenceCardinality | back to summary |
|---|---|
| private ReferenceCardinality(String value) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists. | |
| valueOf | back to summary |
|---|---|
| public static ReferenceCardinality valueOf(String name) | |
| values | back to summary |
|---|---|
| public static ReferenceCardinality[] values() | |