Class NoOpPipelineDescriptor
- java.lang.Object
-
- org.ametys.plugins.extraction.execution.pipeline.impl.NoOpPipelineDescriptor
-
- All Implemented Interfaces:
PipelineDescriptor
public class NoOpPipelineDescriptor extends Object implements PipelineDescriptor
Basic implementation ofPipelineDescriptor, with no XSLT and a XML serializer.
-
-
Field Summary
Fields Modifier and Type Field Description private PipelineSerializerModel_xmlSerializer
-
Constructor Summary
Constructors Constructor Description NoOpPipelineDescriptor(PipelineSerializerModel xmlSerializer)Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDefaultExtension()Gets the default extension of the file result(s)
The default extension is used whenPipelineDescriptor.getResultSubfolder()is a folder and not a file.ExtractionMatchergetExtractionMatcher()Gets theextraction matcherto check if the pipeline is able to handle a given extractionI18nizableTextgetLabel()Gets the labelMap<String,String>getOutputParameters()Get the output parameters to add some specific features in each serializer.StringgetResultSubfolder()Gets the result subfolder (or file).PipelineSerializerModelgetSerializerModel()Gets theserializer modelList<String>getStylesheets()Gets the XSLT file names to chainPipelinenewPipeline(OutputStream out)Provides a newPipeline
-
-
-
Field Detail
-
_xmlSerializer
private PipelineSerializerModel _xmlSerializer
-
-
Constructor Detail
-
NoOpPipelineDescriptor
public NoOpPipelineDescriptor(PipelineSerializerModel xmlSerializer)
Default constructor- Parameters:
xmlSerializer- The XML descriptor serializer for the pipelines
-
-
Method Detail
-
getLabel
public I18nizableText getLabel()
Description copied from interface:PipelineDescriptorGets the label- Specified by:
getLabelin interfacePipelineDescriptor- Returns:
- the label
-
getExtractionMatcher
public ExtractionMatcher getExtractionMatcher()
Description copied from interface:PipelineDescriptorGets theextraction matcherto check if the pipeline is able to handle a given extraction- Specified by:
getExtractionMatcherin interfacePipelineDescriptor- Returns:
- the
extraction matcherof the pipeline
-
getStylesheets
public List<String> getStylesheets()
Description copied from interface:PipelineDescriptorGets the XSLT file names to chain- Specified by:
getStylesheetsin interfacePipelineDescriptor- Returns:
- the XSLT file names to chain
-
getSerializerModel
public PipelineSerializerModel getSerializerModel()
Description copied from interface:PipelineDescriptorGets theserializer model- Specified by:
getSerializerModelin interfacePipelineDescriptor- Returns:
- the
serializer model
-
getResultSubfolder
public String getResultSubfolder()
Description copied from interface:PipelineDescriptorGets the result subfolder (or file).
Can contain variables (seePathResolver), resolved against the extraction results.
If it returns- a file path without variable, then all extraction results will be in this file;
- a file path with variables, then extraction results will be dispatched in the resolved file paths;
-
a folder path without variable, then all extraction results will be in one file under this folder
(the file name will be the one provided in
defaultResultFileNameparameter ofExtractionExecutor#execute method); -
a folder path with variables, then each first level content extraction result will be dispatched in one file under the resolved folders
(the file name will be the title of the content, and the extension is the return of
PipelineDescriptor.getDefaultExtension());
- Specified by:
getResultSubfolderin interfacePipelineDescriptor- Returns:
- the result subfolder (or file)
-
getDefaultExtension
public String getDefaultExtension()
Description copied from interface:PipelineDescriptorGets the default extension of the file result(s)
The default extension is used whenPipelineDescriptor.getResultSubfolder()is a folder and not a file.- Specified by:
getDefaultExtensionin interfacePipelineDescriptor- Returns:
- the default extension of the file result(s)
-
newPipeline
public Pipeline newPipeline(OutputStream out)
Description copied from interface:PipelineDescriptorProvides a newPipeline- Specified by:
newPipelinein interfacePipelineDescriptor- Parameters:
out- the output stream to write on- Returns:
- the built
Pipeline
-
getOutputParameters
public Map<String,String> getOutputParameters()
Description copied from interface:PipelineDescriptorGet the output parameters to add some specific features in each serializer.- Specified by:
getOutputParametersin interfacePipelineDescriptor- Returns:
- The output parameters
-
-