org.geotools.styling
Class NamedStyleImpl

Object
  extended by NamedStyleImpl
All Implemented Interfaces:
NamedStyle, Style

public class NamedStyleImpl
extends Object
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
Module:

Constructor Summary
NamedStyleImpl()
           
 
Method Summary
 void accept(StyleVisitor visitor)
          DOCUMENT ME!
 void addFeatureTypeStyle(FeatureTypeStyle type)
          DOCUMENT ME!
 String getAbstract()
          DOCUMENT ME!
 Description getDescription()
          Description for this style.
 FeatureTypeStyle[] getFeatureTypeStyles()
          DOCUMENT ME!
 String getName()
          Style name
 String getTitle()
          Human readable title.
 boolean isDefault()
          DOCUMENT ME!
 void setAbstract(String abstractStr)
          DOCUMENT ME!
 void setDefault(boolean isDefault)
          DOCUMENT ME!
 void setFeatureTypeStyles(FeatureTypeStyle[] types)
          DOCUMENT ME!
 void setName(String name)
          Set name.
 void setTitle(String title)
          Human readable title.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedStyleImpl

public NamedStyleImpl()
Method Detail

getName

public String getName()
Style name

Specified by:
getName in interface NamedStyle
Specified by:
getName in interface Style
Returns:
style name

setName

public void setName(String name)
Set name.

Specified by:
setName in interface NamedStyle
Specified by:
setName in interface Style
Parameters:
name - style name

getDescription

public Description getDescription()
Description copied from interface: Style
Description for this style.

Specified by:
getDescription in interface Style
Returns:
Human readable description for use in user interfaces

getTitle

public String getTitle()
Human readable title.

Specified by:
getTitle in interface NamedStyle
Specified by:
getTitle in interface Style
Returns:
Human readable title, or null

setTitle

public void setTitle(String title)
Human readable title.

Specified by:
setTitle in interface NamedStyle
Specified by:
setTitle in interface Style
Parameters:
title - Human readable title.
Throws:
UnsupportedOperationException - Cannot be changed

getAbstract

public String getAbstract()
DOCUMENT ME!

Specified by:
getAbstract in interface NamedStyle
Specified by:
getAbstract in interface Style
Returns:
DOCUMENT ME!

setAbstract

public void setAbstract(String abstractStr)
DOCUMENT ME!

Specified by:
setAbstract in interface NamedStyle
Specified by:
setAbstract in interface Style
Parameters:
abstractStr - DOCUMENT ME!
Throws:
UnsupportedOperationException - DOCUMENT ME!

isDefault

public boolean isDefault()
DOCUMENT ME!

Specified by:
isDefault in interface NamedStyle
Specified by:
isDefault in interface Style
Returns:
DOCUMENT ME!

setDefault

public void setDefault(boolean isDefault)
DOCUMENT ME!

Specified by:
setDefault in interface NamedStyle
Specified by:
setDefault in interface Style
Parameters:
isDefault - DOCUMENT ME!
Throws:
UnsupportedOperationException - DOCUMENT ME!

getFeatureTypeStyles

public FeatureTypeStyle[] getFeatureTypeStyles()
DOCUMENT ME!

Specified by:
getFeatureTypeStyles in interface NamedStyle
Specified by:
getFeatureTypeStyles in interface Style
Returns:
DOCUMENT ME!

setFeatureTypeStyles

public void setFeatureTypeStyles(FeatureTypeStyle[] types)
DOCUMENT ME!

Specified by:
setFeatureTypeStyles in interface NamedStyle
Specified by:
setFeatureTypeStyles in interface Style
Parameters:
types - DOCUMENT ME!
Throws:
UnsupportedOperationException - DOCUMENT ME!

addFeatureTypeStyle

public void addFeatureTypeStyle(FeatureTypeStyle type)
DOCUMENT ME!

Specified by:
addFeatureTypeStyle in interface NamedStyle
Specified by:
addFeatureTypeStyle in interface Style
Parameters:
type - DOCUMENT ME!
Throws:
UnsupportedOperationException - DOCUMENT ME!

accept

public void accept(StyleVisitor visitor)
DOCUMENT ME!

Specified by:
accept in interface NamedStyle
Specified by:
accept in interface Style
Parameters:
visitor - DOCUMENT ME!


Copyright © 1996-2009 Geotools. All Rights Reserved.