Param - the type of object that will be populated from the JSON and passed to the factory to
create the layer.public interface MapLayerFactoryPlugin<Param>
| Modifier and Type | Method and Description |
|---|---|
Param |
createParameter()
Create an instance of a param object.
|
java.util.Set<java.lang.String> |
getTypeNames()
Return a set of all the values the json 'type' property should have for this plugin to apply typenames
MUST be lowercase.
|
MapLayer |
parse(Template template,
Param layerData)
Inspect the json data and return Optional<MapLayer> or Optional.absent().
|
java.util.Set<java.lang.String> getTypeNames()
Param createParameter()
Attribute value objects. See ReflectiveAttribute.createValue(org.mapfish.print.config.Template)()} for
details on how the parsing mechanism works.@Nonnull MapLayer parse(@Nonnull Template template, @Nonnull Param layerData) throws java.io.IOException
template - the configuration related to the current request.layerData - an object populated from the json for the layerjava.io.IOException