public static enum ConfigurationFile.InteractionPolicy extends Enum<ConfigurationFile.InteractionPolicy>
Enum Constant and Description |
---|
DISCARD
Delete the existing file if it exists and create a new empty file
|
NEW
Fail if there is an existing file and it is non-empty; otherwise create a new empty file
|
READ_ONLY
Require that the specified file exist, but do not update it
|
STANDARD
The typical case; require that the specified file exist and allow updates to it
|
Modifier and Type | Method and 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.
|
public static final ConfigurationFile.InteractionPolicy STANDARD
public static final ConfigurationFile.InteractionPolicy DISCARD
public static final ConfigurationFile.InteractionPolicy NEW
public static final ConfigurationFile.InteractionPolicy READ_ONLY
public static ConfigurationFile.InteractionPolicy[] values()
for (ConfigurationFile.InteractionPolicy c : ConfigurationFile.InteractionPolicy.values()) System.out.println(c);
public static ConfigurationFile.InteractionPolicy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isReadOnly()
Copyright © 2023 JBoss by Red Hat. All rights reserved.