|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.core.enums.AbstractLabeledEnum org.springframework.core.enums.StaticLabeledEnum org.springframework.osgi.service.importer.support.Cardinality
public class Cardinality
Enum-like class containing the OSGi importer services cardinality. Indicates the number of expected matching services and whether the presence is mandatory or not.
Field Summary | |
---|---|
static Cardinality |
C_0__1
Optional, single cardinality. |
static Cardinality |
C_0__N
Optional, multiple cardinality. |
static Cardinality |
C_1__1
Mandatory, single cardinality. |
static Cardinality |
C_1__N
Mandatory, multiple cardinality. |
Fields inherited from interface org.springframework.core.enums.LabeledEnum |
---|
CODE_ORDER, DEFAULT_ORDER, LABEL_ORDER |
Method Summary | |
---|---|
boolean |
isMandatory()
Indicates if this cardinality implies that at least one service is expected (mandatory cardinality). |
boolean |
isMultiple()
Indicates if this cardinality implies that multiple services are expected. |
boolean |
isOptional()
Indicates if this cardinality implies that is acceptable for no matching services to be found. |
boolean |
isSingle()
Indicates if this cardinality implies that at most one service is expected. |
Methods inherited from class org.springframework.core.enums.StaticLabeledEnum |
---|
getCode, getLabel, readResolve, shortValue |
Methods inherited from class org.springframework.core.enums.AbstractLabeledEnum |
---|
compareTo, equals, getType, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Cardinality C_0__1
public static final Cardinality C_0__N
public static final Cardinality C_1__1
public static final Cardinality C_1__N
Method Detail |
---|
public boolean isSingle()
public boolean isMultiple()
public boolean isMandatory()
public boolean isOptional()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |