- java.lang.Object
- 
- com.pervasive.datarush.io.configuration.FileConfiguration
 
- 
 public final class FileConfiguration extends Object Generic configuration object which consists of a list of arbitrary named fields. Configuration typically consist of an account id field plus a secret key field plus any extra configuration. From the standpoint of the framework, configurations are opaque objects. The framework's responsibility is to transport the configuration templateFileSystemProvider#getConfigurationTemplate()to the user interface and then securely transport the user's response to the file provider.
- 
- 
Field SummaryFields Modifier and Type Field Description static FileConfigurationEMPTY_CONFIGURATIONAny empty configuration object.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FileConfigurationconfiguration(ConfigurationField... fields)Creates a configuration object consisting of an ordered list of fieldsstatic FileConfigurationconfiguration(List<ConfigurationField> fields)Creates a configuration object consisting of an ordered list of fieldsConfigurationFieldgetField(String name)Returns the field corresponding to the given nameList<ConfigurationField>getFields()Returns the fields of this configuration objectbooleanisEmpty()Indicates whether the configuration represent the empty configuration.FileConfigurationoverride(FileConfiguration overrides)Creates a new FileConfiguration object equal to this configuration with its values overridden by the specified values
 
- 
- 
- 
Field Detail- 
EMPTY_CONFIGURATIONpublic static final FileConfiguration EMPTY_CONFIGURATION Any empty configuration object.
 
- 
 - 
Method Detail- 
configurationpublic static FileConfiguration configuration(ConfigurationField... fields) throws IllegalArgumentException Creates a configuration object consisting of an ordered list of fields- Parameters:
- fields- the fields
- Returns:
- a new configuration object
- Throws:
- IllegalArgumentException- if there are any duplicate fields
 
 - 
configurationpublic static FileConfiguration configuration(List<ConfigurationField> fields) throws IllegalArgumentException Creates a configuration object consisting of an ordered list of fields- Parameters:
- fields- the fields
- Returns:
- a new configuration object
- Throws:
- IllegalArgumentException- if there are any duplicate fields
 
 - 
overridepublic FileConfiguration override(FileConfiguration overrides) Creates a new FileConfiguration object equal to this configuration with its values overridden by the specified values- Parameters:
- overrides- the overriding values
- Returns:
- a new FileConfiguration object equal
 
 - 
isEmptypublic boolean isEmpty() Indicates whether the configuration represent the empty configuration.- Returns:
- trueif the configuration is empty,- falseotherwise
 
 - 
getFieldspublic List<ConfigurationField> getFields() Returns the fields of this configuration object- Returns:
- the fields of this configuration object
 
 - 
getFieldpublic ConfigurationField getField(String name) throws IllegalArgumentException Returns the field corresponding to the given name- Parameters:
- name- the name of the field
- Returns:
- the corresponding field
- Throws:
- IllegalArgumentException- if the given field does not exist
 
 
- 
 
-