public class NamedStyleImpl extends StyleImpl implements NamedStyle
A NamedStyle is a Style that has only Name, so all setters other than setName will throw an
UnsupportedOperationException
| Constructor and Description |
|---|
NamedStyleImpl() |
| Modifier and Type | Method and Description |
|---|---|
Object |
accept(StyleVisitor visitor,
Object data)
calls the visit method of a StyleVisitor
|
void |
addFeatureTypeStyle(FeatureTypeStyle type) |
String |
getAbstract() |
FeatureTypeStyle[] |
getFeatureTypeStyles() |
String |
getName()
Style name
|
String |
getTitle()
Human readable title.
|
boolean |
isDefault()
The IsDefault element identifies whether a style is the default style of a layer, for use in
SLD ‘library mode’ when rendering or for storing inside of a map server.
|
void |
setAbstract(String abstractStr) |
void |
setDefault(boolean isDefault)
Indicates that this is the default style.
|
void |
setFeatureTypeStyles(FeatureTypeStyle[] types) |
void |
setName(String name)
Set name.
|
void |
setTitle(String title)
Human readable title.
|
accept, clone, equals, featureTypeStyles, getBackground, getDefaultSpecification, getDescription, hashCode, setBackground, setDefaultSpecification, setDescription, toStringaccept, featureTypeStyles, getBackground, getDefaultSpecification, getDescription, setBackground, setDefaultSpecificationpublic String getName()
public void setName(String name)
public String getTitle()
public void setTitle(String title)
title - Human readable title.UnsupportedOperationException - Cannot be changedpublic String getAbstract()
public void setAbstract(String abstractStr)
public boolean isDefault()
Stylepublic void setDefault(boolean isDefault)
StyleAssume this is kept for GeoServer enabling a WMS to track which style is considered the default. May consider providing a clientProperties mechanism similar to Swing JComponent allowing applications to mark up the Style content for custom uses.
setDefault in class StyleImplpublic FeatureTypeStyle[] getFeatureTypeStyles()
getFeatureTypeStyles in class StyleImplpublic void setFeatureTypeStyles(FeatureTypeStyle[] types)
setFeatureTypeStyles in class StyleImplpublic void addFeatureTypeStyle(FeatureTypeStyle type)
addFeatureTypeStyle in class StyleImplCopyright © 1996–2021 Geotools. All rights reserved.