public final class FileConfiguration extends Object
FileSystemProvider#getConfigurationTemplate()
to the user interface and then securely transport the user's response to the
file provider.Modifier and Type | Field and Description |
---|---|
static FileConfiguration |
EMPTY_CONFIGURATION
Any empty configuration object.
|
Modifier and Type | Method and Description |
---|---|
static FileConfiguration |
configuration(ConfigurationField... fields)
Creates a configuration object consisting of an ordered list of fields
|
static FileConfiguration |
configuration(List<ConfigurationField> fields)
Creates a configuration object consisting of an ordered list of fields
|
ConfigurationField |
getField(String name)
Returns the field corresponding to the given name
|
List<ConfigurationField> |
getFields()
Returns the fields of this configuration object
|
boolean |
isEmpty()
Indicates whether the configuration represent the empty configuration.
|
FileConfiguration |
override(FileConfiguration overrides)
Creates a new FileConfiguration object equal to this configuration with its values overridden by the specified values
|
public static final FileConfiguration EMPTY_CONFIGURATION
public static FileConfiguration configuration(ConfigurationField... fields) throws IllegalArgumentException
fields
- the fieldsIllegalArgumentException
- if there are any duplicate fieldspublic static FileConfiguration configuration(List<ConfigurationField> fields) throws IllegalArgumentException
fields
- the fieldsIllegalArgumentException
- if there are any duplicate fieldspublic FileConfiguration override(FileConfiguration overrides)
overrides
- the overriding valuespublic boolean isEmpty()
true
if the configuration is empty, false
otherwisepublic List<ConfigurationField> getFields()
public ConfigurationField getField(String name) throws IllegalArgumentException
name
- the name of the fieldIllegalArgumentException
- if the given field does not existCopyright © 2020 Actian Corporation. All rights reserved.