org.mapfish.print.attribute.StringArrayAttribute Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of print-lib Show documentation
Show all versions of print-lib Show documentation
Library for generating PDFs and images from online webmapping services
package org.mapfish.print.attribute;
/**
* An attribute that can contain an array of strings.
* [[examples=verboseExample]]
*/
public class StringArrayAttribute extends PrimitiveAttribute {
/**
* Constructor.
*/
@SuppressWarnings("unchecked")
public StringArrayAttribute() {
super(String[].class);
}
/**
* A default value for this attribute. Example:
*
* attributes:
* title: !stringArray
* default: [one, two, three]
*
* @param value The default value.
*/
public final void setDefault(final String[] value) {
this.defaultValue = value;
}
@Override
public Class getValueType() {
return String[].class;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy