Class IntegerAttribute

java.lang.Object
org.mapfish.print.attribute.PrimitiveAttribute<Integer>
org.mapfish.print.attribute.IntegerAttribute
All Implemented Interfaces:
Attribute, ConfigurationObject

public class IntegerAttribute extends PrimitiveAttribute<Integer>
An integer type attribute. [[examples=verboseExample]]
  • Constructor Details

    • IntegerAttribute

      public IntegerAttribute()
      Constructor.
  • Method Details

    • setDefault

      public final void setDefault(Integer value)
      A default value for this attribute. Example:
      
           attributes:
             title: !integer
               default: 42
      Specified by:
      setDefault in class PrimitiveAttribute<Integer>
      Parameters:
      value - The default value.
    • getValueType

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