Package org.mapfish.print.attribute
Class StringArrayAttribute
java.lang.Object
org.mapfish.print.attribute.PrimitiveAttribute<String[]>
org.mapfish.print.attribute.StringArrayAttribute
- All Implemented Interfaces:
Attribute
,ConfigurationObject
An attribute that can contain an array of strings. [[examples=verboseExample]]
-
Field Summary
Fields inherited from class org.mapfish.print.attribute.PrimitiveAttribute
defaultValue
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the class of the value.final void
setDefault
(String[] value) A default value for this attribute.Methods inherited from class org.mapfish.print.attribute.PrimitiveAttribute
clientConfigTypeDescription, getDefault, getValue, getValueClass, printClientConfig, setConfigName, validate, validateValue
-
Constructor Details
-
StringArrayAttribute
public StringArrayAttribute()Constructor.
-
-
Method Details
-
setDefault
A default value for this attribute. Example:attributes: title: !stringArray default: [one, two, three]
- Specified by:
setDefault
in classPrimitiveAttribute<String[]>
- Parameters:
value
- The default value.
-
getValueType
Description copied from interface:Attribute
Get the class of the value.- Returns:
- the value class
-