public class NorthArrowAttribute extends ReflectiveAttribute<NorthArrowAttribute.NorthArrowAttributeValues>
The attributes for CreateNorthArrowProcessor (see
!createNorthArrow processor).
| Modifier and Type | Class and Description |
|---|---|
class |
NorthArrowAttribute.NorthArrowAttributeValues
The value of
NorthArrowAttribute. |
JSON_ATTRIBUTE_DEFAULT, JSON_ATTRIBUTE_EMBEDDED_TYPE, JSON_ATTRIBUTE_IS_ARRAY, JSON_ATTRIBUTE_TYPE, JSON_CLIENT_INFO, JSON_CLIENT_PARAMS, JSON_NAME| Constructor and Description |
|---|
NorthArrowAttribute() |
| Modifier and Type | Method and Description |
|---|---|
NorthArrowAttribute.NorthArrowAttributeValues |
createValue(Template template)
Create an instance of a attribute value object.
|
java.lang.Boolean |
getCreateSubReport() |
java.lang.Integer |
getSize() |
java.lang.Class<? extends NorthArrowAttribute.NorthArrowAttributeValues> |
getValueType()
Return the type created by
ReflectiveAttribute.createValue(org.mapfish.print.config.Template). |
void |
setCreateSubReport(java.lang.Boolean createSubReport)
Specifies whether a subreport should be created, or only a graphic.
|
void |
setSize(java.lang.Integer size)
The size (width and height) of the north-arrow graphic in the JasperReport template.
|
void |
validate(java.util.List<java.lang.Throwable> validationErrors,
Configuration configuration)
validate that the configuration was correct.
|
getAttributeName, getClientInfo, getDefaultValue, getValue, printClientConfig, setConfigName, setDefaultpublic final void validate(java.util.List<java.lang.Throwable> validationErrors,
Configuration configuration)
ConfigurationObjectvalidationErrors - a list to add any detected errors to.configuration - the containing configurationpublic final NorthArrowAttribute.NorthArrowAttributeValues createValue(Template template)
ReflectiveAttributeHasDefaultValue annotation then no
exception will be thrown if the json does not contain a value.
Fields in the object with the OneOf annotation must have one of the
fields in the request data.
StringIntegerFloatDoubleShortBooleanCharacterByteEnum()
method then it will be called after the fields are all set.
In the case where the a parameter type is a normal POJO (not a special case like PJsonObject, URL,
enum, double, etc...) then it will be assumed that the json data is a json object and the parameters
will be recursively parsed into the new object as if it is also MapLayer parameter object.
It is important to put values in the value object as public fields because reflection is used when
printing client config as well as generating documentation. If a field is intended for the client
software as information but is not intended to be set (or sent as part of the request data), the field
can be a final field.createValue in class ReflectiveAttribute<NorthArrowAttribute.NorthArrowAttributeValues>template - the template that this attribute is part of.public final java.lang.Class<? extends NorthArrowAttribute.NorthArrowAttributeValues> getValueType()
ReflectiveAttributeReflectiveAttribute.createValue(org.mapfish.print.config.Template).getValueType in interface AttributegetValueType in class ReflectiveAttribute<NorthArrowAttribute.NorthArrowAttributeValues>public final java.lang.Integer getSize()
public final void setSize(java.lang.Integer size)
The graphic is a square so that the arrow can be rotated properly.
size - The size (width and height).public final java.lang.Boolean getCreateSubReport()
public final void setCreateSubReport(java.lang.Boolean createSubReport)
createSubReport - Create a sub-report?