Package org.geotools.styling
Class NamedStyleImpl
-
- All Implemented Interfaces:
Cloneable
,NamedStyle
,Style
,Cloneable
public class NamedStyleImpl extends StyleImpl implements NamedStyle
A NamedStyle is used to refer to a style that has a name in a WMS.A NamedStyle is a Style that has only Name, so all setters other than setName will throw an
UnsupportedOperationException
- Author:
- jamesm
-
-
Constructor Summary
Constructors Constructor Description NamedStyleImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
accept(TraversingStyleVisitor visitor, Object data)
calls the visit method of a StyleVisitorvoid
addFeatureTypeStyle(FeatureTypeStyle type)
String
getAbstract()
FeatureTypeStyle[]
getFeatureTypeStyles()
String
getName()
Style nameString
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.-
Methods inherited from class StyleImpl
accept, clone, equals, featureTypeStyles, getBackground, getDefaultSpecification, getDescription, hashCode, setBackground, setDefaultSpecification, setDescription, toString
-
Methods inherited from interface Style
accept, featureTypeStyles, getBackground, getDefaultSpecification, getDescription, setBackground, setDefaultSpecification
-
-
-
-
Method Detail
-
getName
public String getName()
Style name
-
setName
public void setName(String name)
Set name.
-
getTitle
public String getTitle()
Human readable title.- Returns:
- Human readable title, or null
-
setTitle
public void setTitle(String title)
Human readable title.- Parameters:
title
- Human readable title.- Throws:
UnsupportedOperationException
- Cannot be changed
-
getAbstract
public String getAbstract()
-
setAbstract
public void setAbstract(String abstractStr)
-
isDefault
public boolean isDefault()
Description copied from interface:Style
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. IsDefault uses “1” or “true” for true and “0” or “false” for false. The default value is “0”.
-
setDefault
public void setDefault(boolean isDefault)
Description copied from interface:Style
Indicates that this is the default style.Assume 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.
- Specified by:
setDefault
in interfaceStyle
- Overrides:
setDefault
in classStyleImpl
-
getFeatureTypeStyles
public FeatureTypeStyle[] getFeatureTypeStyles()
- Overrides:
getFeatureTypeStyles
in classStyleImpl
-
setFeatureTypeStyles
public void setFeatureTypeStyles(FeatureTypeStyle[] types)
- Overrides:
setFeatureTypeStyles
in classStyleImpl
-
addFeatureTypeStyle
public void addFeatureTypeStyle(FeatureTypeStyle type)
- Overrides:
addFeatureTypeStyle
in classStyleImpl
-
-