Enum Constant | Description |
---|---|
accessibleForNotify |
|
notAccessible |
|
readCreate |
|
readOnly |
|
readWrite |
|
writeOnly |
Modifier and Type | Method | Description |
---|---|---|
static MaxAccess |
fromSmiValue(java.lang.String smiValue) |
Gets the
MaxAccess from a MAX-ACCESS (or ACCESS in SMIv1) clause string. |
java.lang.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(java.lang.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(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getSmiValue()
public static MaxAccess fromSmiValue(java.lang.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 © 2018 SNMP4J.org. All rights reserved.