Enum ConfigurationFile.InteractionPolicy
- java.lang.Object
-
- java.lang.Enum<ConfigurationFile.InteractionPolicy>
-
- org.jboss.as.controller.persistence.ConfigurationFile.InteractionPolicy
-
- All Implemented Interfaces:
Serializable
,Comparable<ConfigurationFile.InteractionPolicy>
- Enclosing class:
- ConfigurationFile
public static enum ConfigurationFile.InteractionPolicy extends Enum<ConfigurationFile.InteractionPolicy>
Policy controlling how to deal with the configuration file
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DISCARD
Delete the existing file if it exists and create a new empty fileNEW
Fail if there is an existing file and it is non-empty; otherwise create a new empty fileREAD_ONLY
Require that the specified file exist, but do not update itSTANDARD
The typical case; require that the specified file exist and allow updates to it
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isReadOnly()
static ConfigurationFile.InteractionPolicy
valueOf(String name)
Returns the enum constant of this type with the specified name.static ConfigurationFile.InteractionPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STANDARD
public static final ConfigurationFile.InteractionPolicy STANDARD
The typical case; require that the specified file exist and allow updates to it
-
DISCARD
public static final ConfigurationFile.InteractionPolicy DISCARD
Delete the existing file if it exists and create a new empty file
-
NEW
public static final ConfigurationFile.InteractionPolicy NEW
Fail if there is an existing file and it is non-empty; otherwise create a new empty file
-
READ_ONLY
public static final ConfigurationFile.InteractionPolicy READ_ONLY
Require that the specified file exist, but do not update it
-
-
Method Detail
-
values
public static ConfigurationFile.InteractionPolicy[] 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 (ConfigurationFile.InteractionPolicy c : ConfigurationFile.InteractionPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConfigurationFile.InteractionPolicy valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
isReadOnly
public boolean isReadOnly()
-
-