Enum MaxAccess
- java.lang.Object
-
- java.lang.Enum<MaxAccess>
-
- org.opendaylight.yangtools.rfc6643.model.api.MaxAccess
-
- All Implemented Interfaces:
Serializable
,Comparable<MaxAccess>
@Beta public enum MaxAccess extends Enum<MaxAccess>
Maximum allowed access, as defined by RFC2578 Section 7.3.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCESSIBLE_FOR_NOTIFY
Indicates the annotated object is accessible only for notifications.NOT_ACCESSIBLE
Indicates the annotated object is an auxiliary object, as per RFC2578 Section 7.7.READ_CREATE
Indicates thatread
,write
andcreate
access make 'protocol sense'.READ_ONLY
Indicates thatread
access makes 'protocol sense', butwrite
andcreate
do not.READ_WRITE
Indicates thatread
andwrite
access make 'protocol sense', butcreate
does not.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static @Nullable MaxAccess
forStringLiteral(@NonNull String str)
@NonNull String
stringLiteral()
static MaxAccess
valueOf(String name)
Returns the enum constant of this type with the specified name.static MaxAccess[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOT_ACCESSIBLE
public static final MaxAccess NOT_ACCESSIBLE
Indicates the annotated object is an auxiliary object, as per RFC2578 Section 7.7.
-
ACCESSIBLE_FOR_NOTIFY
public static final MaxAccess ACCESSIBLE_FOR_NOTIFY
Indicates the annotated object is accessible only for notifications.
-
READ_ONLY
public static final MaxAccess READ_ONLY
Indicates thatread
access makes 'protocol sense', butwrite
andcreate
do not.
-
READ_WRITE
public static final MaxAccess READ_WRITE
Indicates thatread
andwrite
access make 'protocol sense', butcreate
does not.
-
READ_CREATE
public static final MaxAccess READ_CREATE
Indicates thatread
,write
andcreate
access make 'protocol sense'.
-
-
Method Detail
-
values
public static MaxAccess[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MaxAccess c : MaxAccess.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MaxAccess 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 nameNullPointerException
- if the argument is null
-
stringLiteral
public @NonNull String stringLiteral()
-
-