- All Implemented Interfaces:
Serializable
,Comparable<MaxAccess>
,java.lang.constant.Constable
The
MaxAccess
enumerates the MAX-ACCESS values of SMIv2 and the deprecated writeOnly
of SMIv1.- Since:
- 2.5.0
- Author:
- Frank Fock
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic MaxAccess
fromSmiValue
(String smiValue) Gets theMaxAccess
from a MAX-ACCESS (or ACCESS in SMIv1) clause string.Gets the MAX-ACCESS (or ACCESS in SMIv1) clause string.boolean
Checks if the maximum access is creatable.boolean
Checks if the maximum access isreadOnly
.boolean
Checks if the maximum access is writable.static MaxAccess
Returns the enum constant of this class with the specified name.static MaxAccess[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
notAccessible
-
accessibleForNotify
-
writeOnly
-
readOnly
-
readWrite
-
readCreate
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getSmiValue
Gets the MAX-ACCESS (or ACCESS in SMIv1) clause string.- Returns:
- the SMI access string.
-
fromSmiValue
Gets theMaxAccess
from a MAX-ACCESS (or ACCESS in SMIv1) clause string.- Parameters:
smiValue
- the SMI access string.- Returns:
null
ifsmiValue
is not a valid ACCESS/MAX-ACCESS clause value or the matching enumeration value.
-
isReadOnly
public boolean isReadOnly()Checks if the maximum access isreadOnly
.- Returns:
true
if this maximum access equalsreadOnly
.
-
isWritable
public boolean isWritable()Checks if the maximum access is writable.- Returns:
true
if this maximum access equalsreadWrite
orreadCreate
.
-
isCreatable
public boolean isCreatable()Checks if the maximum access is creatable.- Returns:
true
if this maximum access equalsreadCreate
.
-