public enum MaxAccess extends Enum<MaxAccess>
MaxAccess
enumerates the MAX-ACCESS values of SMIv2 and the deprecated writeOnly
of SMIv1.Enum Constant and Description |
---|
accessibleForNotify |
notAccessible |
readCreate |
readOnly |
readWrite |
writeOnly |
Modifier and Type | Method and Description |
---|---|
static MaxAccess |
fromSmiValue(String smiValue)
Gets the
MaxAccess from a MAX-ACCESS (or ACCESS in SMIv1) clause string. |
String |
getSmiValue()
Gets the MAX-ACCESS (or ACCESS in SMIv1) clause string.
|
boolean |
isCreatable()
Checks if the maximum access is creatable.
|
boolean |
isReadOnly()
Checks if the maximum access is
readOnly . |
boolean |
isWritable()
Checks if the maximum access is writable.
|
static MaxAccess |
valueOf(String name)
Returns 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.
|
public static final MaxAccess notAccessible
public static final MaxAccess accessibleForNotify
public static final MaxAccess writeOnly
public static final MaxAccess readOnly
public static final MaxAccess readWrite
public static final MaxAccess readCreate
public static MaxAccess[] values()
for (MaxAccess c : MaxAccess.values()) System.out.println(c);
public static MaxAccess valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getSmiValue()
public static MaxAccess fromSmiValue(String smiValue)
MaxAccess
from a MAX-ACCESS (or ACCESS in SMIv1) clause string.smiValue
- the SMI access string.null
if smiValue
is not a valid ACCESS/MAX-ACCESS clause value or
the matching enumeration value.public boolean isReadOnly()
readOnly
.true
if this maximum access equals readOnly
.public boolean isWritable()
true
if this maximum access equals readWrite
or readCreate
.public boolean isCreatable()
true
if this maximum access equals readCreate
.Copyright © 2016 SNMP4J.org. All rights reserved.