Class NoOpPipelineDescriptor
java.lang.Object
org.ametys.plugins.extraction.execution.pipeline.impl.NoOpPipelineDescriptor
- All Implemented Interfaces:
PipelineDescriptor
Basic implementation of
PipelineDescriptor
, with no XSLT and a XML serializer.-
Constructor Summary
ConstructorDescriptionNoOpPipelineDescriptor
(PipelineSerializerModel xmlSerializer) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionGets the default extension of the file result(s)
The default extension is used whenPipelineDescriptor.getResultSubfolder()
is a folder and not a file.Gets theextraction matcher
to check if the pipeline is able to handle a given extractiongetLabel()
Gets the labelGet the output parameters to add some specific features in each serializer.Gets the result subfolder (or file).Gets theserializer model
Gets the XSLT file names to chainnewPipeline
(OutputStream out) Provides a newPipeline
-
Constructor Details
-
NoOpPipelineDescriptor
Default constructor- Parameters:
xmlSerializer
- The XML descriptor serializer for the pipelines
-
-
Method Details
-
getLabel
Description copied from interface:PipelineDescriptor
Gets the label- Specified by:
getLabel
in interfacePipelineDescriptor
- Returns:
- the label
-
getExtractionMatcher
Description copied from interface:PipelineDescriptor
Gets theextraction matcher
to check if the pipeline is able to handle a given extraction- Specified by:
getExtractionMatcher
in interfacePipelineDescriptor
- Returns:
- the
extraction matcher
of the pipeline
-
getStylesheets
Description copied from interface:PipelineDescriptor
Gets the XSLT file names to chain- Specified by:
getStylesheets
in interfacePipelineDescriptor
- Returns:
- the XSLT file names to chain
-
getSerializerModel
Description copied from interface:PipelineDescriptor
Gets theserializer model
- Specified by:
getSerializerModel
in interfacePipelineDescriptor
- Returns:
- the
serializer model
-
getResultSubfolder
Description copied from interface:PipelineDescriptor
Gets 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
defaultResultFileName
parameter 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:
getResultSubfolder
in interfacePipelineDescriptor
- Returns:
- the result subfolder (or file)
-
getDefaultExtension
Description copied from interface:PipelineDescriptor
Gets the default extension of the file result(s)
The default extension is used whenPipelineDescriptor.getResultSubfolder()
is a folder and not a file.- Specified by:
getDefaultExtension
in interfacePipelineDescriptor
- Returns:
- the default extension of the file result(s)
-
newPipeline
Description copied from interface:PipelineDescriptor
Provides a newPipeline
- Specified by:
newPipeline
in interfacePipelineDescriptor
- Parameters:
out
- the output stream to write on- Returns:
- the built
Pipeline
-
getOutputParameters
Description copied from interface:PipelineDescriptor
Get the output parameters to add some specific features in each serializer.- Specified by:
getOutputParameters
in interfacePipelineDescriptor
- Returns:
- The output parameters
-