public enum AccessConstraintApplicability extends Enum<AccessConstraintApplicability> implements Enumeration
Enum Constant and Description |
---|
APPLIES_ALWAYS
The constraint always applies, no matter whether the object to which
the constraint is attached is the "Transmitter" object or the "Receiver" object.
|
RECEIVER_ONLY
The constraint only applies during access computations in which
the object to which the constraint is attached is the "Receiver"
object.
|
TRANSMITTER_ONLY
The constraint only applies during access computations in which
the object to which the constraint is attached is the "Transmitter"
object.
|
Modifier and Type | Method and Description |
---|---|
static AccessConstraintApplicability |
getDefault()
Get the enum constant that is considered to be the default.
|
static AccessConstraintApplicability |
getFromValue(int value)
Get the enum constant that is associated with the given numeric value.
|
int |
getValue()
Get the numeric value associated with this enum constant.
|
static AccessConstraintApplicability |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AccessConstraintApplicability[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AccessConstraintApplicability APPLIES_ALWAYS
public static final AccessConstraintApplicability TRANSMITTER_ONLY
public static final AccessConstraintApplicability RECEIVER_ONLY
public static AccessConstraintApplicability[] values()
for (AccessConstraintApplicability c : AccessConstraintApplicability.values()) System.out.println(c);
public static AccessConstraintApplicability 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 int getValue()
getValue
in interface Enumeration
@Nonnull public static AccessConstraintApplicability getFromValue(int value)
value
- a numeric value.@Nonnull public static AccessConstraintApplicability getDefault()