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 java.lang.Object implements ConfigurationObject
Describes the objects used as sources for a merged data source (see !mergeDataSources processor). [[examples=merged_datasource]]
-
-
Constructor Summary
Constructors Constructor Description Source()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setFields(java.util.Map<java.lang.String,java.lang.String> fields)
The names of each field in the DataSource.void
setKey(java.lang.String key)
The key to use when looking for the object among the attributes and the processor output values.void
setType(MergeDataSourceProcessor.SourceType type)
The type of source.void
validate(java.util.List<java.lang.Throwable> validationErrors, Configuration config)
validate that the configuration was correct.
-
-
-
Method Detail
-
setKey
public void setKey(java.lang.String key)
The key to use when looking for the object among the attributes and the processor output values.- Parameters:
key
- the look up key
-
setType
public void setType(MergeDataSourceProcessor.SourceType type)
The type of source. SeeMergeDataSourceProcessor.SourceType
for the options.- Parameters:
type
- the type of source
-
setFields
public void setFields(java.util.Map<java.lang.String,java.lang.String> fields)
The names of each field in the DataSource. SeeMergeDataSourceProcessor.SourceType
for instructions on how to declare the fields- Parameters:
fields
- the field names
-
validate
public void validate(java.util.List<java.lang.Throwable> validationErrors, Configuration config)
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
-
-