public enum ReferenceCardinality extends Enum<ReferenceCardinality>
Reference
annotation.
Specifies if the reference is optional and if the component implementation support a single bound service or multiple bound services.
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
String |
toString() |
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.
|
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
.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 nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<ReferenceCardinality>
Copyright © OSGi Alliance (2000, 2015). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0