|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ReferenceCardinality>
org.apache.felix.scr.annotations.ReferenceCardinality
public enum ReferenceCardinality
Options for Reference.cardinality()
property.
Enum Constant Summary | |
---|---|
MANDATORY_MULTIPLE
Mandatory, multiple reference: At least one service must be available for the reference to be satisified. |
|
MANDATORY_UNARY
Mandatory, unary reference: At least one service must be available for the reference to be satisfied. |
|
OPTIONAL_MULTIPLE
Optional, multiple reference: No service required to be available for the refernce to be satisfied. |
|
OPTIONAL_UNARY
Optional, unary reference: No service required to be available for the refernce to be satisfied. |
Method Summary | |
---|---|
String |
getCardinalityString()
|
static ReferenceCardinality |
valueOf(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, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ReferenceCardinality OPTIONAL_UNARY
public static final ReferenceCardinality MANDATORY_UNARY
public static final ReferenceCardinality OPTIONAL_MULTIPLE
public static final ReferenceCardinality MANDATORY_MULTIPLE
Method Detail |
---|
public static ReferenceCardinality[] values()
for (ReferenceCardinality c : ReferenceCardinality.values()) System.out.println(c);
public static ReferenceCardinality valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic String getCardinalityString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |