public class ProfileConfig
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.util.Set<java.lang.String> |
fileList
The file list resolved from the
fileSet. |
private FileSet |
fileSet
The FILE-SET specified at the profile.
|
private java.util.Map<java.lang.String,java.lang.String> |
includeRemap
Profile's include remapping.
|
private boolean |
isDefault
Flag indicating if this profile is loaded by default, if no explicit profile is used.
|
private java.lang.String |
name
Profile name.
|
private java.util.Map<java.lang.String,java.lang.String> |
parameters
The explicit parameters specified for this profile.
|
private java.lang.String[] |
paths
The PROPATH paths for this config.
|
private java.util.Map<java.lang.Object,java.lang.Object> |
savedStates
Used at runtime, to save state at this profile, to be able to restore it when switching back to this
profile.
|
private SchemaConfig |
schema
Profile's schema configuration.
|
| Constructor and Description |
|---|
ProfileConfig()
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addIncludeRemap(java.util.Map<java.lang.String,java.lang.String> remap)
Add all include remappings to this profile.
|
void |
addParameter(java.lang.String name,
java.lang.String value)
Add these parameters to the profile.
|
void |
addParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
Add all the parameters to this profile.
|
void |
addState(java.lang.Object key,
java.lang.Object state)
Save a state with the specified key.
|
(package private) java.util.Set<java.lang.String> |
getFileList()
Get the profile's file-list.
|
FileSet |
getFileSet()
Get a copy of the profile's
fileSet. |
java.util.Map<java.lang.String,java.lang.String> |
getIncludeRemap()
Get a copy of the profile's
include remapping. |
java.lang.String |
getName()
Get the profile name.
|
java.util.Map<java.lang.String,java.lang.String> |
getParameters()
Get a copy of the profile's
parameters. |
java.lang.String[] |
getPaths()
Get the
paths. |
SchemaConfig |
getSchema()
Get the profile's
schema config. |
java.lang.Object |
getState(java.lang.Object key)
Get a state for the specified key.
|
boolean |
isDefault()
Get the
isDefault flag. |
void |
setDefault(boolean isDefault)
Set the
isDefault flag. |
(package private) void |
setFileList(java.util.Set<java.lang.String> fl)
Set the profile's file-list.
|
void |
setFileSet(FileSet fileSet)
Set the profile's file-set.
|
void |
setName(java.lang.String name)
Set the profile name.
|
void |
setPaths(java.lang.String[] paths)
Set the paths.
|
void |
setSchema(SchemaConfig schema)
Set the profile's schema configuration.
|
private final java.util.Map<java.lang.String,java.lang.String> parameters
private FileSet fileSet
private SchemaConfig schema
private final java.util.Map<java.lang.String,java.lang.String> includeRemap
private java.lang.String name
private boolean isDefault
private java.util.Map<java.lang.Object,java.lang.Object> savedStates
private java.lang.String[] paths
private java.util.Set<java.lang.String> fileList
fileSet.public boolean isDefault()
isDefault flag.public void setDefault(boolean isDefault)
isDefault flag.isDefault - Flag indicating if this profile is loaded by default, if no explicit profile is used.public java.lang.String getName()
public void setName(java.lang.String name)
name - See above.public void addParameter(java.lang.String name,
java.lang.String value)
throws ConfigurationException
name - The parameter name.value - The parameter's value.ConfigurationException - If the parameter is already set.public java.util.Map<java.lang.String,java.lang.String> getParameters()
parameters.public void setFileSet(FileSet fileSet) throws ConfigurationException
fileSet - The file-set to use.ConfigurationException - If the fileSet is already set.public SchemaConfig getSchema()
schema config.public void setSchema(SchemaConfig schema) throws ConfigurationException
schema - The schema configuration.ConfigurationException - If the schema is already set.public java.util.Map<java.lang.String,java.lang.String> getIncludeRemap()
include remapping.public void addIncludeRemap(java.util.Map<java.lang.String,java.lang.String> remap)
throws ConfigurationException
remap - The include remappings.ConfigurationExceptionpublic void addParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
parameters - The parameters to add.public java.lang.Object getState(java.lang.Object key)
key - The key.public void addState(java.lang.Object key,
java.lang.Object state)
key - The state's key.state - The state.public void setPaths(java.lang.String[] paths)
paths - The PROPATH paths for this config.public java.lang.String[] getPaths()
paths.java.util.Set<java.lang.String> getFileList()
fileList.void setFileList(java.util.Set<java.lang.String> fl)
fl - The file-list associated with the fileSet.