public class CreateMapPagesProcessor extends AbstractProcessor<CreateMapPagesProcessor.Input,CreateMapPagesProcessor.Output> implements ProvideAttributes, RequireAttributes
Processor used to display a map on multiple pages.
This processor will take the defined map attribute and using the geometry defined in the map attribute's area of interest, will create an Iterable<Values> each of which contains:
The iterable of values can be consumed by a !createDataSource processor and as a result be put in the report (or one of the sub-reports) table. One must be careful as this can result in truly giant reports.
See also: !paging attribute
[[examples=paging]]| Modifier and Type | Class and Description |
|---|---|
static class |
CreateMapPagesProcessor.Input
The Input object for processor.
|
static class |
CreateMapPagesProcessor.Output
Output of processor.
|
AbstractProcessor.ContextProcessor.ExecutionContextMDC_JOB_ID_KEY| Modifier | Constructor and Description |
|---|---|
protected |
CreateMapPagesProcessor()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
CreateMapPagesProcessor.Input |
createInputParameter()
Returns a new/clean instance of a parameter object.
|
CreateMapPagesProcessor.Output |
execute(CreateMapPagesProcessor.Input values,
Processor.ExecutionContext context)
Perform the process on the input attributes.
|
protected void |
extraValidation(java.util.List<java.lang.Throwable> validationErrors,
Configuration configuration)
Perform any extra validation a subclass may need to perform.
|
java.util.Map<java.lang.String,Attribute> |
getAttributes()
Gets the attributes provided by the processor.
|
void |
setAttribute(java.lang.String name,
Attribute attribute)
Set the map attribute.
|
getInputMapperBiMap, getInputPrefix, getOutputMapperBiMap, getOutputPrefix, getOutputType, setInputMapper, setInputPrefix, setOutputMapper, setOutputPrefix, setPrefix, toString, toString, validateprotected void extraValidation(java.util.List<java.lang.Throwable> validationErrors,
Configuration configuration)
AbstractProcessorextraValidation in class AbstractProcessor<CreateMapPagesProcessor.Input,CreateMapPagesProcessor.Output>validationErrors - a list to add errors to so that all validation errors are reported as
one.configuration - the containing configurationpublic final CreateMapPagesProcessor.Input createInputParameter()
ProcessorValues object.
The way the properties will be looked up is to
Values object using the mapped
property name
HasDefaultValue annotation is on the field for
the property.
createInputParameter in interface Processor<CreateMapPagesProcessor.Input,CreateMapPagesProcessor.Output>public final CreateMapPagesProcessor.Output execute(CreateMapPagesProcessor.Input values, Processor.ExecutionContext context)
Processorexecute in interface Processor<CreateMapPagesProcessor.Input,CreateMapPagesProcessor.Output>values - A Java object whose public fields are populated from the Values object (which is used for transferring properties between
processors).context - The execution context for a print task.Values object. The key in the
Values
object is the name of the field or if there is a mapping in the Processor.getOutputMapperBiMap()
map, the mapped name. The key is determined in a similar way as for the input object.public void setAttribute(java.lang.String name,
Attribute attribute)
setAttribute in interface RequireAttributesname - the attribute nameattribute - the attributepublic java.util.Map<java.lang.String,Attribute> getAttributes()
getAttributes in interface ProvideAttributes