public class ConfigurablePipelineDescriptor extends Object implements PipelineDescriptor, Configurable
PipelineDescriptor
which is Configurable
.Modifier and Type | Field and Description |
---|---|
private static String |
__DEFAULT_SERIALIZER |
private static Logger |
__LOGGER |
private String |
_id |
private I18nizableText |
_label |
private Map<String,String> |
_outputParams |
private PipelineSerializerModelExtensionPoint |
_pipelineSerializers |
private SourceResolver |
_resolver |
private PipelineSerializerModel |
_serializer |
private List<String> |
_xslts |
Constructor and Description |
---|
ConfigurablePipelineDescriptor(String id,
SourceResolver resolver,
PipelineSerializerModelExtensionPoint pipelineSerializers)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
configure(Configuration configuration) |
String |
getDefaultExtension()
Gets the default extension of the file result(s)
The default extension is used when PipelineDescriptor.getResultSubfolder() is a folder and not a file. |
I18nizableText |
getLabel()
Gets the label
|
Map<String,String> |
getOutputParameters()
Get the output parameters to add some specific features in each serializer.
|
String |
getResultSubfolder()
Gets the result subfolder (or file).
|
PipelineSerializerModel |
getSerializerModel()
Gets the
serializer model |
List<String> |
getStylesheets()
Gets the XSLT file names to chain
|
Pipeline |
newPipeline(OutputStream out)
Provides a new
Pipeline |
protected void |
setOutputParameters(Configuration outputConf)
Set the output parameters to get the extension, path, encoding, etc.
|
private static final String __DEFAULT_SERIALIZER
private I18nizableText _label
private PipelineSerializerModel _serializer
private Map<String,String> _outputParams
private SourceResolver _resolver
private PipelineSerializerModelExtensionPoint _pipelineSerializers
public ConfigurablePipelineDescriptor(String id, SourceResolver resolver, PipelineSerializerModelExtensionPoint pipelineSerializers)
id
- The id of the pipeline descriptorresolver
- The source resolverpipelineSerializers
- The extension point for pipeline serializerspublic void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
public I18nizableText getLabel()
PipelineDescriptor
getLabel
in interface PipelineDescriptor
public List<String> getStylesheets()
PipelineDescriptor
getStylesheets
in interface PipelineDescriptor
public PipelineSerializerModel getSerializerModel()
PipelineDescriptor
serializer model
getSerializerModel
in interface PipelineDescriptor
serializer model
public String getResultSubfolder()
PipelineDescriptor
PathResolver
), resolved against the extraction results.
defaultResultFileName
parameter
of ExtractionExecutor#execute method
);
PipelineDescriptor.getDefaultExtension()
);
getResultSubfolder
in interface PipelineDescriptor
public String getDefaultExtension()
PipelineDescriptor
PipelineDescriptor.getResultSubfolder()
is a folder and not a file.getDefaultExtension
in interface PipelineDescriptor
public Pipeline newPipeline(OutputStream out)
PipelineDescriptor
Pipeline
newPipeline
in interface PipelineDescriptor
out
- the output stream to write onPipeline
public Map<String,String> getOutputParameters()
PipelineDescriptor
getOutputParameters
in interface PipelineDescriptor
protected void setOutputParameters(Configuration outputConf) throws ConfigurationException
outputConf
- The output configurationConfigurationException
- throws an exception if an error occurs