Class SymbolizerBuilder<T extends Symbolizer>
- Object
-
- SymbolizerBuilder<T>
-
- All Implemented Interfaces:
Builder<T>
- Direct Known Subclasses:
LineSymbolizerBuilder
,PointSymbolizerBuilder
,PolygonSymbolizerBuilder
,RasterSymbolizerBuilder
,TextSymbolizerBuilder
public abstract class SymbolizerBuilder<T extends Symbolizer> extends Object
Base class handling options management
-
-
Field Summary
Fields Modifier and Type Field Description protected static FilterFactory
FF
protected Map<String,String>
options
protected AbstractSLDBuilder<?>
parent
protected StyleFactory
sf
protected boolean
unset
-
Constructor Summary
Constructors Constructor Description SymbolizerBuilder(AbstractSLDBuilder parent)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Object
buildRoot()
StyledLayerDescriptor
buildSLD()
protected void
buildSLDInternal(StyledLayerDescriptorBuilder sb)
Style
buildStyle()
protected abstract void
buildStyleInternal(StyleBuilder sb)
protected Expression
cqlExpression(String cql)
protected Filter
cqlFilter(String cql)
protected void
init(Builder<T> other)
protected Expression
literal(Object literal)
SymbolizerBuilder
option(String name, String value)
protected Expression
property(String name)
AbstractSLDBuilder<T>
unset()
Configure the Builder to producenull
.
-
-
-
Field Detail
-
sf
protected StyleFactory sf
-
parent
protected AbstractSLDBuilder<?> parent
-
FF
protected static final FilterFactory FF
-
unset
protected boolean unset
-
-
Method Detail
-
option
public SymbolizerBuilder option(String name, String value)
-
literal
protected Expression literal(Object literal)
-
property
protected Expression property(String name)
-
cqlExpression
protected Expression cqlExpression(String cql)
-
buildSLDInternal
protected void buildSLDInternal(StyledLayerDescriptorBuilder sb)
-
buildStyle
public Style buildStyle()
-
buildRoot
public Object buildRoot()
-
buildStyleInternal
protected abstract void buildStyleInternal(StyleBuilder sb)
-
init
protected void init(Builder<T> other)
-
unset
public AbstractSLDBuilder<T> unset()
Description copied from interface:Builder
Configure the Builder to producenull
.This method allows a Builder to be used as a placeholder; in its unset state the build() method will produce
null
. If any of the builder methods are used the builder will produce a result.
-
buildSLD
public StyledLayerDescriptor buildSLD()
-
-