Package org.mapfish.print.attribute
Class BooleanAttribute
java.lang.Object
org.mapfish.print.attribute.PrimitiveAttribute<Boolean>
org.mapfish.print.attribute.BooleanAttribute
- All Implemented Interfaces:
Attribute
,ConfigurationObject
A boolean type attribute. [[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
(Boolean 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
-
BooleanAttribute
public BooleanAttribute()Constructor.
-
-
Method Details
-
setDefault
A default value for this attribute. Example:attributes: title: !boolean default: True
- Specified by:
setDefault
in classPrimitiveAttribute<Boolean>
- Parameters:
value
- The default value.
-
getValueType
Description copied from interface:Attribute
Get the class of the value.- Returns:
- the value class
-