public class DefaultProjectWriter extends AbstractProjectWriter
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_SEPARATE_FILES
The configuration parameter name for detailing if project files are to be
placed outside the project archive
|
PARAM_TARGET
PARAM_CHARSET, PARAM_CONTENT_TYPE
Constructor and Description |
---|
DefaultProjectWriter(boolean archive) |
Modifier and Type | Method and Description |
---|---|
protected IOReport |
execute(ProgressIndicator progress,
IOReporter reporter)
Execute the I/O provider.
|
boolean |
isUseSeparateFiles() |
void |
setParameter(String name,
Value value)
Set a parameter
|
void |
setUseSeparateFiles(boolean useSeparateFiles) |
void |
storeConfiguration(Map<String,Value> configuration)
Stores all parameters that were set using
AbstractIOProvider.setParameter(String, Value) in the configuration. |
void |
validate()
Validate the I/O provider configuration
|
getDefaultTypeName, getPreviousTarget, getProject, getProjectFiles, isCancelable, setPreviousTarget, setProject, setProjectFiles
createReporter, getTarget, setTarget
addSupportedParameter, execute, fail, getCharset, getContentType, getDefaultCharset, getParameter, getSupportedParameters, getTypeName, loadConfiguration, setCharset, setContentType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTarget, setTarget
createReporter, execute, getCharset, getContentType, getParameter, getSupportedParameters, loadConfiguration, setCharset, setContentType
public static final String PARAM_SEPARATE_FILES
public DefaultProjectWriter(boolean archive)
archive
- if the project shall be saved to a ZIP archivepublic void validate() throws IOProviderConfigurationException
IOProvider
validate
in interface IOProvider
validate
in class AbstractExportProvider
IOProviderConfigurationException
- if the I/O provider was not
configured properlyAbstractExportProvider.validate()
public void storeConfiguration(Map<String,Value> configuration)
AbstractIOProvider
AbstractIOProvider.setParameter(String, Value)
in the configuration. For changing
the behavior please override this method.storeConfiguration
in interface IOProvider
storeConfiguration
in class AbstractExportProvider
configuration
- the configuration to populate, values are either
strings, DOM elements or complex value types defined in the
ComplexValueExtension
AbstractExportProvider.storeConfiguration(Map)
public void setParameter(String name, Value value)
IOProvider
setParameter
in interface IOProvider
setParameter
in class AbstractExportProvider
name
- the parameter namevalue
- the parameter value, it is either a string, a DOM elements
or a complex value types defined in the
ComplexValueExtension
protected IOReport execute(ProgressIndicator progress, IOReporter reporter) throws IOProviderConfigurationException, IOException
AbstractIOProvider
execute
in class AbstractIOProvider
progress
- the progress indicatorreporter
- the reporter to use for the execution reportIOProviderConfigurationException
- if the I/O provider was not
configured properlyIOException
- if an I/O operation failsAbstractIOProvider.execute(ProgressIndicator, IOReporter)
public boolean isUseSeparateFiles()
public void setUseSeparateFiles(boolean useSeparateFiles)
useSeparateFiles
- the useSeparateFiles to setBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a