|
OSGi™ Enterprise Release 5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<ReferenceCardinality> org.osgi.service.component.annotations.ReferenceCardinality
public enum 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.
Enum Constant Summary | |
---|---|
AT_LEAST_ONE
The reference is mandatory and multiple. |
|
MANDATORY
The reference is mandatory and unary. |
|
MULTIPLE
The reference is optional and multiple. |
|
OPTIONAL
The reference is optional and unary. |
Method Summary | |
---|---|
java.lang.String |
toString()
|
static ReferenceCardinality |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ReferenceCardinality[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ReferenceCardinality OPTIONAL
0..1
.
public static final ReferenceCardinality MANDATORY
1..1
.
public static final ReferenceCardinality MULTIPLE
0..n
.
public static final ReferenceCardinality AT_LEAST_ONE
1..n
.
Method Detail |
---|
public static ReferenceCardinality[] values()
for (ReferenceCardinality c : ReferenceCardinality.values()) System.out.println(c);
public static ReferenceCardinality valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
toString
in class java.lang.Object
|
OSGi™ Enterprise Release 5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |