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, toString
accept, featureTypeStyles, getBackground, getDefaultSpecification, getDescription, setBackground, setDefaultSpecification
public 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()
Style
public void setDefault(boolean isDefault)
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.
setDefault
in class StyleImpl
public FeatureTypeStyle[] getFeatureTypeStyles()
getFeatureTypeStyles
in class StyleImpl
public void setFeatureTypeStyles(FeatureTypeStyle[] types)
setFeatureTypeStyles
in class StyleImpl
public void addFeatureTypeStyle(FeatureTypeStyle type)
addFeatureTypeStyle
in class StyleImpl
Copyright © 1996–2022 Geotools. All rights reserved.