Enum Class MergeDataSourceProcessor.SourceType

java.lang.Object
java.lang.Enum<MergeDataSourceProcessor.SourceType>
org.mapfish.print.processor.jasper.MergeDataSourceProcessor.SourceType
All Implemented Interfaces:
Serializable, Comparable<MergeDataSourceProcessor.SourceType>, Constable
Enclosing class:
MergeDataSourceProcessor

public static enum MergeDataSourceProcessor.SourceType extends 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 Details

    • 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 Details

    • values

      public static MergeDataSourceProcessor.SourceType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MergeDataSourceProcessor.SourceType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null