org.apache.tuscany.spi.model
Enum OverrideOptions
java.lang.Object
java.lang.Enum<OverrideOptions>
org.apache.tuscany.spi.model.OverrideOptions
- All Implemented Interfaces:
- Serializable, Comparable<OverrideOptions>
public enum OverrideOptions
- extends Enum<OverrideOptions>
- no – the value may not be overridden by the higher composite. In this
case, a value must be provided for the reference or property as part of its
declaration.
- may – the value may be overridden by the composite. This is the default
for references.
- must – no value is specified and the using composite must specify one.
Method Summary |
static OverrideOptions |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static OverrideOptions[] |
values()
Returns an array containing the constants of this enum type, in
the order they're declared. |
NO
public static final OverrideOptions NO
MAY
public static final OverrideOptions MAY
MUST
public static final OverrideOptions MUST
values
public static final OverrideOptions[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(OverrideOptions c : OverrideOptions.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static OverrideOptions valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
-