org.vfny.geoserver.config
Class StyleConfig

java.lang.Object
  extended byorg.vfny.geoserver.config.StyleConfig

public class StyleConfig
extends java.lang.Object

StyleConfig purpose.

Defines the style ids to be used by the wms. The files must be contained in geoserver/misc/wms/styles. We're working on finding a better place for them, but for now that's where you must put them if you want them on the server.


Constructor Summary
StyleConfig()
          StyleConfig constructor.
StyleConfig(StyleDTO style)
          StyleConfig constructor.
 
Method Summary
 java.io.File getFilename()
          getFilename purpose.
 java.lang.String getId()
          getId purpose.
 boolean isDefault()
          isDefault purpose.
 void setDefault(boolean b)
          setDefault purpose.
 void setFilename(java.io.File file)
          setFilename purpose.
 void setId(java.lang.String string)
          setId purpose.
 StyleDTO toDTO()
          Implement toDTO.
 void update(StyleDTO obj)
          Implement loadDTO.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StyleConfig

public StyleConfig()
StyleConfig constructor.

Creates a StyleConfig to represent an instance with default data.

See Also:
defaultSettings()

StyleConfig

public StyleConfig(StyleDTO style)
StyleConfig constructor.

Creates a copy of the StyleDTO provided. All the data structures are cloned.

Parameters:
style - The style to copy.
Throws:
java.lang.NullPointerException - DOCUMENT ME!
Method Detail

update

public void update(StyleDTO obj)
Implement loadDTO.

Stores the data provided for the specified StyleDTO object

Parameters:
obj - a StyleDTO object
Throws:
java.lang.NullPointerException - DOCUMENT ME!
See Also:
org.vfny.geoserver.config.DataStructure#loadDTO(java.lang.Object)

toDTO

public StyleDTO toDTO()
Implement toDTO.

Creates a StyleDTO which represents the data in this config object.

Returns:
a copy of this classes data in a StyleDTO object.
See Also:
org.vfny.geoserver.config.DataStructure#toDTO()

isDefault

public boolean isDefault()
isDefault purpose.

Description ...

Returns:

getFilename

public java.io.File getFilename()
getFilename purpose.

Description ...

Returns:

getId

public java.lang.String getId()
getId purpose.

Description ...

Returns:

setDefault

public void setDefault(boolean b)
setDefault purpose.

Description ...

Parameters:
b -

setFilename

public void setFilename(java.io.File file)
setFilename purpose.

Description ...

Parameters:
file -

setId

public void setId(java.lang.String string)
setId purpose.

Description ...

Parameters:
string -