Package org.mapfish.print.attribute
Class StringArrayAttribute
- java.lang.Object
-
- org.mapfish.print.attribute.PrimitiveAttribute<java.lang.String[]>
-
- org.mapfish.print.attribute.StringArrayAttribute
-
- All Implemented Interfaces:
Attribute
,ConfigurationObject
public class StringArrayAttribute extends PrimitiveAttribute<java.lang.String[]>
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 Constructor Description StringArrayAttribute()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class
getValueType()
Get the class of the value.void
setDefault(java.lang.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
-
-
-
-
Method Detail
-
setDefault
public final void setDefault(java.lang.String[] value)
A default value for this attribute. Example:attributes: title: !stringArray default: [one, two, three]
- Specified by:
setDefault
in classPrimitiveAttribute<java.lang.String[]>
- Parameters:
value
- The default value.
-
getValueType
public java.lang.Class getValueType()
Description copied from interface:Attribute
Get the class of the value.- Returns:
- the value class
-
-