public class NamedLayerBuilder extends Object
Modifier and Type | Field and Description |
---|---|
protected static FilterFactory2 |
FF |
protected AbstractSLDBuilder<?> |
parent |
protected StyleFactory |
sf |
protected boolean |
unset |
Constructor and Description |
---|
NamedLayerBuilder() |
NamedLayerBuilder(AbstractSLDBuilder<?> parent) |
Modifier and Type | Method and Description |
---|---|
NamedLayer |
build()
Created object, may be null if unset()
|
Object |
buildRoot() |
StyledLayerDescriptor |
buildSLD() |
protected void |
buildSLDInternal(StyledLayerDescriptorBuilder sb) |
protected void |
init(Builder<T> other) |
NamedLayerBuilder |
name(String name) |
NamedLayerBuilder |
reset()
Configure the Builder to produce a default result.
|
NamedLayerBuilder |
reset(NamedLayer layer)
Configure the Builder to produce a copy of the provided original.
|
StyleBuilder |
style() |
NamedLayerBuilder |
unset()
Configure the Builder to produce
null . |
protected StyleFactory sf
protected AbstractSLDBuilder<?> parent
protected static final FilterFactory2 FF
protected boolean unset
public NamedLayerBuilder()
public NamedLayerBuilder(AbstractSLDBuilder<?> parent)
public NamedLayerBuilder name(String name)
public StyleBuilder style()
public NamedLayer build()
Builder
public NamedLayerBuilder reset()
Builder
public NamedLayerBuilder reset(NamedLayer layer)
Builder
public NamedLayerBuilder 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<NamedLayer>
null
protected void buildSLDInternal(StyledLayerDescriptorBuilder sb)
public StyledLayerDescriptor buildSLD()
public Object buildRoot()
protected void init(Builder<T> other)
Copyright © 1996–2019 Geotools. All rights reserved.