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 TypeMethodDescriptionvoidThe names of each field in the DataSource.voidThe key to use when looking for the object among the attributes and the processor output values.voidThe type of source.voidvalidate(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.SourceTypefor the options.- Parameters:
type- the type of source
-
setFields
The names of each field in the DataSource. SeeMergeDataSourceProcessor.SourceTypefor instructions on how to declare the fields- Parameters:
fields- the field names
-
validate
Description copied from interface:ConfigurationObjectvalidate that the configuration was correct.- Specified by:
validatein interfaceConfigurationObject- Parameters:
validationErrors- a list to add any detected errors to.config- the containing configuration
-