public enum SELinuxMode extends java.lang.Enum<SELinuxMode>
Enum Constant and Description |
---|
DISABLED |
ENFORCING |
PERMISSIVE |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue() |
static java.util.Collection |
keys() |
static SELinuxMode |
lookup(java.lang.String key)
Given a key such as enforcing, permissive, or disabled,
the code returns the appropriate mode..
|
java.lang.String |
toString() |
static SELinuxMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SELinuxMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SELinuxMode ENFORCING
public static final SELinuxMode PERMISSIVE
public static final SELinuxMode DISABLED
public static SELinuxMode[] values()
for (SELinuxMode c : SELinuxMode.values()) System.out.println(c);
public static SELinuxMode 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 getValue()
public static SELinuxMode lookup(java.lang.String key)
key
- enforcing, permissive, or disabledpublic static java.util.Collection keys()
public java.lang.String toString()
toString
in class java.lang.Enum<SELinuxMode>