Package org.geotools.ysld.encode
Class RootEncoder
- Object
-
- YsldEncodeHandler<StyledLayerDescriptor>
-
- RootEncoder
-
public class RootEncoder extends YsldEncodeHandler<StyledLayerDescriptor>
Encodes aStyledLayerDescriptor
as YSLD. Handles top-level elements such a name and title, and delegates toFeatureStyleEncoder
for the content.YSLD focuses on SymbologyEncoding specification; encoding the default (or first) style found, and treating surrounding StyleLayerDescriptor / NamedLayer as a wrapper.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
encode(NamedLayer layer)
Encode named layer information as part of root-level with prefixlayer
.protected void
encode(Style style)
protected void
encode(StyledLayer layer)
protected void
encode(StyledLayerDescriptor sld)
Encode sld as part of root-level information prefixed withsld
.protected void
encode(UserLayer layer)
Encode user layer information as part of root-level information prefixed withuser
.-
Methods inherited from class YsldEncodeHandler
hasNext, next, remove, vendorOptions
-
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface Iterator
forEachRemaining
-
-
-
-
Method Detail
-
encode
protected void encode(StyledLayerDescriptor sld)
Encode sld as part of root-level information prefixed withsld
.This method looks and encodes the
SLD.defaultStyle(StyledLayerDescriptor)
along with it's parent layer.- Specified by:
encode
in classYsldEncodeHandler<StyledLayerDescriptor>
- Parameters:
sld
-
-
encode
protected void encode(UserLayer layer)
Encode user layer information as part of root-level information prefixed withuser
.- Parameters:
layer
- User layer, ornull
if not available.
-
encode
protected void encode(NamedLayer layer)
Encode named layer information as part of root-level with prefixlayer
.- Parameters:
layer
- Named layer, or null if not available.
-
encode
protected void encode(StyledLayer layer)
-
encode
protected void encode(Style style)
-
-