org.vfny.geoserver.global.dto
Class StyleDTO

java.lang.Object
  extended byorg.vfny.geoserver.global.dto.StyleDTO
All Implemented Interfaces:
java.lang.Cloneable, DataTransferObject

public final class StyleDTO
extends java.lang.Object
implements DataTransferObject

Data Transfer Object for style information.

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.

StyleDTO styleDto = new StyleDTO(); styleDto.setDefault(false); styleDto.setId("My Style"); styleDto.setFilename(new File(myStyle.sld));


Constructor Summary
StyleDTO()
          StyleConfig constructor.
StyleDTO(StyleDTO style)
          StyleConfig constructor.
 
Method Summary
 java.lang.Object clone()
          Implement clone.
 boolean equals(java.lang.Object obj)
          Implement equals.
 java.io.File getFilename()
          getFilename purpose.
 java.lang.String getId()
          getId purpose.
 int hashCode()
          Implement hashCode.
 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.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StyleDTO

public StyleDTO()
StyleConfig constructor.

does nothing


StyleDTO

public StyleDTO(StyleDTO style)
StyleConfig constructor.

Creates a copy of the StyleConfig provided. If the StyleConfig provided is null then default values are used. All the data structures are cloned.

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

clone

public java.lang.Object clone()
Implement clone.

creates a clone of this object

Specified by:
clone in interface DataTransferObject
Returns:
A copy of this StyleConfig
See Also:
Object.clone()

equals

public boolean equals(java.lang.Object obj)
Implement equals.

recursively tests to determine if the object passed in is a copy of this object.

Specified by:
equals in interface DataTransferObject
Parameters:
obj - The StyleConfig object to test.
Returns:
true when the object passed is the same as this object.
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Implement hashCode.

Specified by:
hashCode in interface DataTransferObject
Returns:
Service hashcode or 0
See Also:
Object.hashCode()

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 -