Package com.snmp4j.smi
Enum Class SmiAccess
- All Implemented Interfaces:
Serializable,Comparable<SmiAccess>,java.lang.constant.Constable
The SmiMaxAccess enumerates the ACCESS values of SMIv2 for MODULE-COMPLIANCE and AGENT-CAPABILITIES statements,
including the deprecated
writeOnly for backward-compatibility.- Since:
- 1.7.0 (Pro edition only)
- Author:
- Frank Fock
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionObject accesible for notifications only.Not acessible object.Not implemented object.Object is read-write accessible and creatable via SNMP.Object is read-only.Object is read-write accessible - creation is not supported via SNMP SET.Object is write-only (deprecated in SMIv2) -
Method Summary
Modifier and TypeMethodDescriptionstatic SmiAccessfromSmiValue(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 thisSmiObjectis accessible or not.booleanChecks if thisSmiObjectis read-create or not.booleanChecks if thisSmiObjectis implemented or not.booleanChecks if thisSmiObjectis read-only or not.booleanChecks if thisSmiObjectis read-write or not.static SmiAccessReturns the enum constant of this class with the specified name.static SmiAccess[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
notImplemented
Not implemented object. -
notAccessible
Not acessible object. -
accessibleForNotify
Object accesible for notifications only. -
writeOnly
Object is write-only (deprecated in SMIv2) -
readOnly
Object is read-only. -
readWrite
Object is read-write accessible - creation is not supported via SNMP SET. -
readCreate
Object is read-write accessible and creatable via SNMP.
-
-
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 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.
-
isAccessible
public boolean isAccessible()Checks if thisSmiObjectis accessible or not.- Returns:
trueif access is notnotAccessibleand notnotImplemented.
-
isImplemented
public boolean isImplemented()Checks if thisSmiObjectis implemented or not.- Returns:
trueif access is notnotImplemented.
-
isReadOnly
public boolean isReadOnly()Checks if thisSmiObjectis read-only or not.- Returns:
trueif access isreadOnly.
-
isWritable
public boolean isWritable()Checks if thisSmiObjectis read-write or not.- Returns:
trueif access isreadWriteor greater.
-
isCreatable
public boolean isCreatable()Checks if thisSmiObjectis read-create or not.- Returns:
trueif access isreadCreate.
-