Module org.snmp4j

Enum Class MaxAccess

java.lang.Object
java.lang.Enum<MaxAccess>
org.snmp4j.smi.MaxAccess
All Implemented Interfaces:
Serializable, Comparable<MaxAccess>, java.lang.constant.Constable

public enum MaxAccess extends Enum<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 Details

    • notAccessible

      public static final MaxAccess notAccessible
    • accessibleForNotify

      public static final MaxAccess accessibleForNotify
    • writeOnly

      public static final MaxAccess writeOnly
    • readOnly

      public static final MaxAccess readOnly
    • readWrite

      public static final MaxAccess readWrite
    • readCreate

      public static final MaxAccess readCreate
  • Method Details

    • values

      public static MaxAccess[] 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

      public static MaxAccess valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getSmiValue

      public String getSmiValue()
      Gets the MAX-ACCESS (or ACCESS in SMIv1) clause string.
      Returns:
      the SMI access string.
    • fromSmiValue

      public static MaxAccess fromSmiValue(String smiValue)
      Gets the MaxAccess from a MAX-ACCESS (or ACCESS in SMIv1) clause string.
      Parameters:
      smiValue - the SMI access string.
      Returns:
      null if smiValue is not a valid ACCESS/MAX-ACCESS clause value or the matching enumeration value.
    • isReadOnly

      public boolean isReadOnly()
      Checks if the maximum access is readOnly.
      Returns:
      true if this maximum access equals readOnly.
    • isWritable

      public boolean isWritable()
      Checks if the maximum access is writable.
      Returns:
      true if this maximum access equals readWrite or readCreate.
    • isCreatable

      public boolean isCreatable()
      Checks if the maximum access is creatable.
      Returns:
      true if this maximum access equals readCreate.