Package org.snmp4j.smi
Enum MaxAccess
- All Implemented Interfaces:
Serializable
,Comparable<MaxAccess>
The
MaxAccess
enumerates the MAX-ACCESS values of SMIv2 and the deprecated writeOnly
of SMIv1.- Since:
- 2.5.0
- Author:
- Frank Fock
-
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 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 Details
-
notAccessible
-
accessibleForNotify
-
writeOnly
-
readOnly
-
readWrite
-
readCreate
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
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
.
-