Package org.geotools.styling
Class NamedStyleImpl
- All Implemented Interfaces:
 Cloneable,NamedStyle,Style,Cloneable
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 - 
Method Summary
Modifier and TypeMethodDescriptionaccept(TraversingStyleVisitor visitor, Object data) calls the visit method of a StyleVisitorvoidgetName()Style namegetTitle()Human readable title.booleanThe 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.voidsetAbstract(String abstractStr) voidsetDefault(boolean isDefault) Indicates that this is the default style.voidsetFeatureTypeStyles(FeatureTypeStyle... types) voidSet name.voidHuman readable title.Methods inherited from class StyleImpl
accept, clone, equals, featureTypeStyles, getBackground, getDefaultSpecification, getDescription, hashCode, setBackground, setDefaultSpecification, setDescription, toStringMethods inherited from interface Style
accept, featureTypeStyles, getBackground, getDefaultSpecification, getDescription, setBackground, setDefaultSpecification 
- 
Constructor Details
- 
NamedStyleImpl
public NamedStyleImpl() 
 - 
 - 
Method Details
- 
getName
Style name - 
setName
Set name. - 
getTitle
Human readable title.- Returns:
 - Human readable title, or null
 
 - 
setTitle
Human readable title.- Parameters:
 title- Human readable title.- Throws:
 UnsupportedOperationException- Cannot be changed
 - 
getAbstract
 - 
setAbstract
 - 
isDefault
public boolean isDefault()Description copied from interface:StyleThe 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:StyleIndicates 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:
 setDefaultin interfaceStyle- Overrides:
 setDefaultin classStyleImpl
 - 
getFeatureTypeStyles
- Overrides:
 getFeatureTypeStylesin classStyleImpl
 - 
setFeatureTypeStyles
- Overrides:
 setFeatureTypeStylesin classStyleImpl
 - 
addFeatureTypeStyle
- Overrides:
 addFeatureTypeStylein classStyleImpl
 - 
accept
Description copied from interface:Stylecalls the visit method of a StyleVisitor 
 -