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
Enum Constants - 
Method Summary
Modifier and TypeMethodDescriptionstatic MaxAccessfromSmiValue(String smiValue) Gets theMaxAccessfrom a MAX-ACCESS (or ACCESS in SMIv1) clause string.Gets the MAX-ACCESS (or ACCESS in SMIv1) clause string.booleanChecks if the maximum access is creatable.booleanChecks if the maximum access isreadOnly.booleanChecks if the maximum access is writable.static MaxAccessReturns 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 theMaxAccessfrom a MAX-ACCESS (or ACCESS in SMIv1) clause string.- Parameters:
 smiValue- the SMI access string.- Returns:
 nullifsmiValueis not a valid ACCESS/MAX-ACCESS clause value or the matching enumeration value.
 - 
isReadOnly
public boolean isReadOnly()Checks if the maximum access isreadOnly.- Returns:
 trueif this maximum access equalsreadOnly.
 - 
isWritable
public boolean isWritable()Checks if the maximum access is writable.- Returns:
 trueif this maximum access equalsreadWriteorreadCreate.
 - 
isCreatable
public boolean isCreatable()Checks if the maximum access is creatable.- Returns:
 trueif this maximum access equalsreadCreate.
 
 -