Enum Class SmiAccess
- All Implemented Interfaces:
Serializable, Comparable<SmiAccess>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<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
-
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
-
isWritable
-
isCreatable
public boolean isCreatable()Checks if thisSmiObjectis read-create or not.- Returns:
trueif access isreadCreate.
-