Class StringArrayAttribute

java.lang.Object
org.mapfish.print.attribute.PrimitiveAttribute<String[]>
org.mapfish.print.attribute.StringArrayAttribute
All Implemented Interfaces:
Attribute, ConfigurationObject

public class StringArrayAttribute extends PrimitiveAttribute<String[]>
An attribute that can contain an array of strings. [[examples=verboseExample]]
  • Constructor Details

    • StringArrayAttribute

      public StringArrayAttribute()
      Constructor.
  • Method Details

    • setDefault

      public final void setDefault(String[] value)
      A default value for this attribute. Example:
      
           attributes:
             title: !stringArray
               default: [one, two, three]
      Specified by:
      setDefault in class PrimitiveAttribute<String[]>
      Parameters:
      value - The default value.
    • getValueType

      public Class getValueType()
      Description copied from interface: Attribute
      Get the class of the value.
      Returns:
      the value class