|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.torque.generator.configuration.UnitConfiguration
public class UnitConfiguration
Contains all information to run a generation unit. Provides state checking, i.e. getters can only be called after all setters has been called.
Constructor Summary | |
---|---|
UnitConfiguration()
|
Method Summary | |
---|---|
ConfigurationHandlers |
getConfigurationHandlers()
Returns the configuration handlers used to parse the configuration of this generation unit. |
String |
getDefaultOutputEncoding()
Returns the output encoding if no specific encoding has been set in the output. |
EntityReferences |
getEntityReferences()
Returns the entityReferences of the associated configuration unit. |
Loglevel |
getLoglevel()
Returns the Loglevel during generation. |
Options |
getOptions()
Returns the options of the associated configuration unit. |
OutletConfiguration |
getOutletConfiguration()
Returns the configuration of the outlets in this generation unit. |
File |
getOutputDirectory(String outputDirKey)
Returns the output directory for a given output directory key. |
Map<String,File> |
getOutputDirectoryMap()
Returns the output directory map which contains the mapping from output directory key to output directory. |
List<Output> |
getOutputList()
Returns the list of output definitions of the associated configuration unit. |
SourceProvider |
getOverrideSourceProvider()
Returns the source provider which overrides the source provider defined in the control file. |
File |
getWorkDirectory()
Returns the directory where the generator can store internal files. |
boolean |
isInit()
Checks whether the unit configuration is fully initialized. |
void |
setConfigurationHandlers(ConfigurationHandlers configurationHandlers)
Sets the configuration handlers used to parse the configuration of this generation unit. |
void |
setDefaultOutputEncoding(String defaultOutputEncoding)
Sets the output encoding if no specific encoding has been set in the output. |
void |
setEntityReferences(EntityReferences entityReferences)
Sets the entityReferences of the associated configuration unit. |
void |
setLoglevel(Loglevel loglevel)
Sets the Loglevel during generation. |
void |
setOptions(Options options)
Sets the options of the associated configuration unit. |
void |
setOutletConfiguration(OutletConfiguration outletConfiguration)
Sets the outlet configuration of the associated configuration unit. |
void |
setOutputDirectoryMap(Map<String,File> outputDirectoryMap)
Sets the output directory map which contains the mapping from output directory key to output directory. |
void |
setOutputList(List<Output> outputList)
Sets the output activities of the associated configuration unit. |
void |
setOverrideSourceProvider(SourceProvider overrideSourceProvider)
Sets the source provider which overrides the source provider defined in the control file. |
void |
setWorkDirectory(File workDirectory)
Sets the directory where the generator can store internal files. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UnitConfiguration()
Method Detail |
---|
public OutletConfiguration getOutletConfiguration()
IllegalStateException
- if outletConfiguration was not set.public void setOutletConfiguration(OutletConfiguration outletConfiguration)
outletConfiguration
- the outlet configuration, not null.
NullPointerException
- if outletConfiguration is null.public Options getOptions()
IllegalStateException
- if options were not yet set.public void setOptions(Options options)
options
- the options, not null.
NullPointerException
- if options is null.public File getOutputDirectory(String outputDirKey)
outputDirKey
- the key which output directory should be returned.
Null represents the default output directory and is always
mapped to a non-null value.
IllegalStateException
- if the default output directory
was not yet set.public Map<String,File> getOutputDirectoryMap()
IllegalStateException
- if no mapping is contained
for the key null.public void setOutputDirectoryMap(Map<String,File> outputDirectoryMap)
outputDirectoryMap
- the new output directory map,
must contain at least a mapping for the key null.
NullPointerException
- if outputDirectoryMap is null.
IllegalStateException
- if the target directory was not yet set.public File getWorkDirectory()
IllegalStateException
- if the target directory was not yet set.public void setWorkDirectory(File workDirectory)
workDirectory
- the work directory, not null.
NullPointerException
- if workDirectory is null.public void setOutputList(List<Output> outputList)
outputList
- the output activities, not null.
NullPointerException
- if outputFiles is null.public List<Output> getOutputList()
IllegalStateException
- if the output definitions were not yet set.public Loglevel getLoglevel()
IllegalStateException
- if the loglevel is not yet set.public void setLoglevel(Loglevel loglevel)
loglevel
- the Loglevel, not null.
NullPointerException
- if loglevel is set to null.public ConfigurationHandlers getConfigurationHandlers()
IllegalStateException
- if configurationHandlers was not set.public void setConfigurationHandlers(ConfigurationHandlers configurationHandlers)
configurationHandlers
- the configuration handlers, not null.
NullPointerException
- if configurationHandlers is null.public SourceProvider getOverrideSourceProvider()
NullPointerException
- if overrideSourceFileset was not yet set.public void setOverrideSourceProvider(SourceProvider overrideSourceProvider)
overrideSourceProvider
- the override source provider, or null
to use the source provider defined in the control file.public EntityReferences getEntityReferences()
IllegalStateException
- if entityReferences were not yet set.public void setEntityReferences(EntityReferences entityReferences)
options
- the entityReferences, not null.
NullPointerException
- if entityReferences is null.public String getDefaultOutputEncoding()
public void setDefaultOutputEncoding(String defaultOutputEncoding)
defaultOutputEncoding
- the default output encoding,
null for the default platform encoding.public boolean isInit()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |