- java.lang.Object
-
- java.lang.Enum<MaxAccess>
-
- org.snmp4j.smi.MaxAccess
-
-
Enum Constant Summary
Enum Constants Enum Constant Description accessibleForNotifynotAccessiblereadCreatereadOnlyreadWritewriteOnly
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MaxAccessfromSmiValue(java.lang.String smiValue)Gets theMaxAccessfrom a MAX-ACCESS (or ACCESS in SMIv1) clause string.java.lang.StringgetSmiValue()Gets the MAX-ACCESS (or ACCESS in SMIv1) clause string.booleanisCreatable()Checks if the maximum access is creatable.booleanisReadOnly()Checks if the maximum access isreadOnly.booleanisWritable()Checks if the maximum access is writable.static MaxAccessvalueOf(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.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static MaxAccess[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MaxAccess c : MaxAccess.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MaxAccess valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getSmiValue
public java.lang.String getSmiValue()
Gets the MAX-ACCESS (or ACCESS in SMIv1) clause string.- Returns:
- the SMI access string.
-
fromSmiValue
public static MaxAccess fromSmiValue(java.lang.String smiValue)
Gets theMaxAccessfrom a MAX-ACCESS (or ACCESS in SMIv1) clause string.- Parameters:
smiValue- the SMI access string.- Returns:
nullifsmiValueis not a valid ACCESS/MAX-ACCESS clause value or the matching enumeration value.
-
isReadOnly
public boolean isReadOnly()
Checks if the maximum access isreadOnly.- Returns:
trueif this maximum access equalsreadOnly.
-
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.
-
-