Package jmri.jmrit.display
Enum EditorPermissions.EditorPermissionEnum
- java.lang.Object
-
- java.lang.Enum<EditorPermissions.EditorPermissionEnum>
-
- jmri.jmrit.display.EditorPermissions.EditorPermissionEnum
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<EditorPermissions.EditorPermissionEnum>
,PermissionValue
- Enclosing class:
- EditorPermissions
public static enum EditorPermissions.EditorPermissionEnum extends java.lang.Enum<EditorPermissions.EditorPermissionEnum> implements PermissionValue
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Default
None
View
ViewControl
ViewControlEdit
-
Field Summary
Fields Modifier and Type Field Description (package private) boolean
_isDefault
(package private) java.lang.String
_text
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isDefault()
Is this the default value of this permission?java.lang.String
toString()
static EditorPermissions.EditorPermissionEnum
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static EditorPermissions.EditorPermissionEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Default
public static final EditorPermissions.EditorPermissionEnum Default
-
None
public static final EditorPermissions.EditorPermissionEnum None
-
View
public static final EditorPermissions.EditorPermissionEnum View
-
ViewControl
public static final EditorPermissions.EditorPermissionEnum ViewControl
-
ViewControlEdit
public static final EditorPermissions.EditorPermissionEnum ViewControlEdit
-
-
Field Detail
-
_isDefault
final boolean _isDefault
-
_text
final java.lang.String _text
-
-
Method Detail
-
values
public static EditorPermissions.EditorPermissionEnum[] 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 (EditorPermissions.EditorPermissionEnum c : EditorPermissions.EditorPermissionEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EditorPermissions.EditorPermissionEnum 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
-
isDefault
public boolean isDefault()
Description copied from interface:PermissionValue
Is this the default value of this permission?- Specified by:
isDefault
in interfacePermissionValue
- Returns:
- true if it's the default, false otherwise
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<EditorPermissions.EditorPermissionEnum>
-
-