Enum MergeDataSourceProcessor.SourceType
- java.lang.Object
-
- java.lang.Enum<MergeDataSourceProcessor.SourceType>
-
- org.mapfish.print.processor.jasper.MergeDataSourceProcessor.SourceType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MergeDataSourceProcessor.SourceType>
- Enclosing class:
- MergeDataSourceProcessor
public static enum MergeDataSourceProcessor.SourceType extends java.lang.Enum<MergeDataSourceProcessor.SourceType>
An enumeration of the different types of source objects. Essentially this describes how the source should be merged into the final merged DataSource.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DATASOURCE
Indicates that the object is a DataSource and each row in it should be expanded to be a row in the output table.SINGLE
Creates a single row from a set of values from the output and attribute objects.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MergeDataSourceProcessor.SourceType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MergeDataSourceProcessor.SourceType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SINGLE
public static final MergeDataSourceProcessor.SourceType SINGLE
Creates a single row from a set of values from the output and attribute objects.In this case the key is not required, only the fields. Each field key will be the look up key to find the object from the set of processor output and attributes. The field value will be the column name for that value in the created row
-
DATASOURCE
public static final MergeDataSourceProcessor.SourceType DATASOURCE
Indicates that the object is a DataSource and each row in it should be expanded to be a row in the output table.If the datasource does not exist or is null then this source will be skipped
The fields parameter of the source should contain all the fields to pull from the source DataSource. Not all Fields need to be declared. For example if the source has 5 fields not all of them need to be in the resulting merged datasource.
-
-
Method Detail
-
values
public static MergeDataSourceProcessor.SourceType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MergeDataSourceProcessor.SourceType c : MergeDataSourceProcessor.SourceType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MergeDataSourceProcessor.SourceType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-