public enum ReferenceCardinality extends Enum<ReferenceCardinality>
ReferenceDescription.getCardinality()
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
static ReferenceCardinality |
fromValue(String value) |
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.
|
public static final ReferenceCardinality OPTIONAL_UNARY
public static final ReferenceCardinality MANDATORY_UNARY
public static final ReferenceCardinality OPTIONAL_MULTIPLE
public static final ReferenceCardinality MANDATORY_MULTIPLE
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 getCardinalityString()
public static ReferenceCardinality fromValue(String value)
Copyright © 2006–2013 The Apache Software Foundation. All rights reserved.