Package org.openmuc.jdlms
Enum MethodAccessMode
- java.lang.Object
-
- java.lang.Enum<MethodAccessMode>
-
- org.openmuc.jdlms.MethodAccessMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MethodAccessMode>
,DlmsEnumeration
public enum MethodAccessMode extends java.lang.Enum<MethodAccessMode> implements DlmsEnumeration
Restrict the access mode of a method.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCESS
Allows access under any circumstances.AUTHENTICATED_ACCESS
NO_ACCESS
No access allowed.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCode()
static MethodAccessMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MethodAccessMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_ACCESS
public static final MethodAccessMode NO_ACCESS
No access allowed.
-
ACCESS
public static final MethodAccessMode ACCESS
Allows access under any circumstances.
-
AUTHENTICATED_ACCESS
public static final MethodAccessMode AUTHENTICATED_ACCESS
-
-
Method Detail
-
values
public static MethodAccessMode[] 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 (MethodAccessMode c : MethodAccessMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MethodAccessMode 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
-
getCode
public long getCode()
- Specified by:
getCode
in interfaceDlmsEnumeration
-
-