?? ReferenceCardinality
- ????????:
Serializable
,Comparable<ReferenceCardinality>
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.
-
??????
??????????The reference is mandatory and multiple.The reference is mandatory and unary.The reference is optional and multiple.The reference is optional and unary. -
????
??????????toString()
static ReferenceCardinality
?????????????????? ??????????????????? ????????(?????? ??????)static ReferenceCardinality[]
values()
???????????????, ??????????????
-
????????
-
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
.
-
-
??????
-
values
???????????????, ??????????????- ??:
- ???????????????????????????
-
valueOf
?????????????????? ??????????????????? ????????(?????? ??????)- ??:
name
- ????????????- ??:
- ?????????????
- ??:
IllegalArgumentException
- ??????????????????NullPointerException
- ???????
-
toString
- ??:
toString
???Enum<ReferenceCardinality>
-