All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mapfish.print.attribute.StyleAttribute Maven / Gradle / Ivy

package org.mapfish.print.attribute;

import org.mapfish.print.attribute.StyleAttribute.StylesAttributeValues;
import org.mapfish.print.config.Configuration;
import org.mapfish.print.config.Template;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.List;

/**
 * Attribute for GeoJson Styles collection.
 * [[examples=report]]
 */
public final class StyleAttribute extends ReflectiveAttribute {

    @SuppressWarnings("unused")
    private static final Logger LOGGER = LoggerFactory.getLogger(StyleAttribute.class);

    @Override
    public Class getValueType() {
        return StylesAttributeValues.class;
    }

    @Override
    public StylesAttributeValues createValue(final Template template) {
        StylesAttributeValues result = new StylesAttributeValues();
        return result;
    }

    @Override
    public void validate(final List validationErrors, final Configuration configuration) {
        // no validation needed.
    }

    /**
     * The value of {@link StyleAttribute}.
     */
    public static final class StylesAttributeValues {
        /**
         * The style string.
         */
        public String style;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy