public class StyledLayerDescriptorBuilder extends Object
Modifier and Type | Field and Description |
---|---|
protected static FilterFactory2 |
FF |
protected AbstractSLDBuilder<?> |
parent |
protected StyleFactory |
sf |
protected boolean |
unset |
Constructor and Description |
---|
StyledLayerDescriptorBuilder() |
Modifier and Type | Method and Description |
---|---|
StyledLayerDescriptor |
build()
Created object, may be null if unset()
|
Object |
buildRoot() |
StyledLayerDescriptor |
buildSLD() |
protected void |
buildSLDInternal(StyledLayerDescriptorBuilder sb) |
protected void |
init(Builder<T> other) |
StyledLayerDescriptorBuilder |
name(String name) |
NamedLayerBuilder |
namedLayer() |
StyledLayerDescriptorBuilder |
reset()
Reset stroke to default values.
|
StyledLayerDescriptorBuilder |
reset(StyledLayerDescriptor other)
Reset builder to provided original stroke.
|
StyledLayerDescriptorBuilder |
sldAbstract(String sldAbstract) |
StyledLayerDescriptorBuilder |
title(String title) |
StyledLayerDescriptorBuilder |
unset()
Configure the Builder to produce
null . |
UserLayerBuilder |
userLayer() |
protected StyleFactory sf
protected AbstractSLDBuilder<?> parent
protected static final FilterFactory2 FF
protected boolean unset
public StyledLayerDescriptorBuilder name(String name)
public StyledLayerDescriptorBuilder title(String title)
public StyledLayerDescriptorBuilder sldAbstract(String sldAbstract)
public NamedLayerBuilder namedLayer()
public UserLayerBuilder userLayer()
public StyledLayerDescriptorBuilder reset()
public StyledLayerDescriptorBuilder reset(StyledLayerDescriptor other)
stroke
- public StyledLayerDescriptor build()
Builder
public StyledLayerDescriptor buildSLD()
protected void buildSLDInternal(StyledLayerDescriptorBuilder sb)
public StyledLayerDescriptorBuilder unset()
Builder
null
.
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.
unset
in interface Builder<StyledLayerDescriptor>
null
public Object buildRoot()
protected void init(Builder<T> other)
Copyright © 1996–2019 Geotools. All rights reserved.