Enum Class MaxAccess
- All Implemented Interfaces:
Serializable, Comparable<MaxAccess>, java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
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 class with the specified name.static MaxAccess[]values()Returns an array containing the constants of this enum class, 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 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
-
isReadOnly
-
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.
-