Class MergeDataSourceProcessor.Source
java.lang.Object
org.mapfish.print.processor.jasper.MergeDataSourceProcessor.Source
- All Implemented Interfaces:
ConfigurationObject
- Enclosing class:
- MergeDataSourceProcessor
public static final class MergeDataSourceProcessor.Source
extends Object
implements ConfigurationObject
Describes the objects used as sources for a merged data source (see !mergeDataSources processor).
[[examples=merged_datasource]]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
The names of each field in the DataSource.void
The key to use when looking for the object among the attributes and the processor output values.void
The type of source.void
validate
(List<Throwable> validationErrors, Configuration config) validate that the configuration was correct.
-
Constructor Details
-
Source
public Source()
-
-
Method Details
-
setKey
The key to use when looking for the object among the attributes and the processor output values.- Parameters:
key
- the look up key
-
setType
The type of source. SeeMergeDataSourceProcessor.SourceType
for the options.- Parameters:
type
- the type of source
-
setFields
The names of each field in the DataSource. SeeMergeDataSourceProcessor.SourceType
for instructions on how to declare the fields- Parameters:
fields
- the field names
-
validate
Description copied from interface:ConfigurationObject
validate that the configuration was correct.- Specified by:
validate
in interfaceConfigurationObject
- Parameters:
validationErrors
- a list to add any detected errors to.config
- the containing configuration
-