public class StyledLayerDescriptorImpl extends Object implements StyledLayerDescriptor
This class is based on version 1.0 of the SLD specification.
For many of us in geotools this is the reason we came along for the ride - a pretty picture. For documentation on the use of this class please consult the SLD 1.0 specification.
We may experiment with our own (or SLD 1.1) ideas but will mark such experiments for you. This is only an issue of you are considering writing out these objects for interoptability with other systems.
General strategy for supporting multiple SLD versions (and experiments):
Constructor and Description |
---|
StyledLayerDescriptorImpl() |
Modifier and Type | Method and Description |
---|---|
void |
accept(StyleVisitor visitor)
Used to navigate a Style/SLD.
|
void |
addStyledLayer(StyledLayer layer) |
boolean |
equals(Object oth) |
String |
getAbstract()
Getter for property abstractStr.
|
Style |
getDefaultStyle()
Convenience method for grabbing the default style from the StyledLayerDescriptor.
|
String |
getName()
Getter for property name.
|
StyledLayer[] |
getStyledLayers() |
String |
getTitle()
Getter for property title.
|
int |
hashCode() |
List<StyledLayer> |
layers()
Direct access to layers list.
|
void |
setAbstract(String abstractStr)
Setter for property abstractStr.
|
void |
setName(String name)
Setter for property name.
|
void |
setStyledLayers(StyledLayer[] layers) |
void |
setTitle(String title)
Setter for property title.
|
public Style getDefaultStyle()
public StyledLayer[] getStyledLayers()
getStyledLayers
in interface StyledLayerDescriptor
public void setStyledLayers(StyledLayer[] layers)
setStyledLayers
in interface StyledLayerDescriptor
public List<StyledLayer> layers()
StyledLayerDescriptor
layers
in interface StyledLayerDescriptor
public void addStyledLayer(StyledLayer layer)
addStyledLayer
in interface StyledLayerDescriptor
public String getName()
getName
in interface StyledLayerDescriptor
public void setName(String name)
setName
in interface StyledLayerDescriptor
name
- New value of property name.public String getTitle()
getTitle
in interface StyledLayerDescriptor
public void setTitle(String title)
setTitle
in interface StyledLayerDescriptor
title
- New value of property title.public String getAbstract()
getAbstract
in interface StyledLayerDescriptor
public void setAbstract(String abstractStr)
setAbstract
in interface StyledLayerDescriptor
abstractStr
- New value of property abstractStr.public void accept(StyleVisitor visitor)
StyledLayerDescriptor
accept
in interface StyledLayerDescriptor
Copyright © 1996–2019 Geotools. All rights reserved.