org.vfny.geoserver.global.dto
Class GeoServerDTO

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

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

Data Transfer Object for Global GeoServer Configuration information.

Data Transfer object are used to communicate between the GeoServer application and its configuration and persistent layers. As such the class is final - to allow for its future use as an on-the-wire message.


Constructor Summary
GeoServerDTO()
          GlobalConfig constructor.
GeoServerDTO(GeoServerDTO g)
          GlobalConfig constructor.
 
Method Summary
 java.lang.Object clone()
          Implement clone.
 boolean equals(java.lang.Object obj)
          Implement equals.
 java.nio.charset.Charset getCharSet()
          getCharSet purpose.
 ContactDTO getContact()
          getContact purpose.
 java.util.logging.Level getLoggingLevel()
          getLoggingLevel purpose.
 int getMaxFeatures()
          getMaxFeatures purpose.
 int getNumDecimals()
          getNumDecimals purpose.
 java.lang.String getSchemaBaseUrl()
          getSchemaBaseUrl purpose.
 int hashCode()
          DOCUMENT ME!
 boolean isVerbose()
          isVerbose purpose.
 void setCharSet(java.nio.charset.Charset charset)
          setCharSet purpose.
 void setContact(ContactDTO contact)
          setContact purpose.
 void setLoggingLevel(java.util.logging.Level level)
          setLoggingLevel purpose.
 void setMaxFeatures(int i)
          setMaxFeatures purpose.
 void setNumDecimals(int i)
          setNumDecimals purpose.
 void setSchemaBaseUrl(java.lang.String url)
          setSchemaBaseUrl purpose.
 void setVerbose(boolean b)
          setVerbose purpose.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeoServerDTO

public GeoServerDTO()
GlobalConfig constructor.

does nothing


GeoServerDTO

public GeoServerDTO(GeoServerDTO g)
GlobalConfig constructor.

Creates a copy of the GlobalConfig object provided, or sets the values to default if one is not provided. Charset is not cloned, everything else is.

Parameters:
g -
Throws:
java.lang.NullPointerException - DOCUMENT ME!
Method Detail

clone

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

Charset is not cloned, everything else is. Strings are reference copied because of the Hashtable implementation in memory.

Specified by:
clone in interface DataTransferObject
Returns:
A new GlobalConfig object which is a copy of this object.
See Also:
Object.clone()

equals

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

Compares the equality of the two objects.

Specified by:
equals in interface DataTransferObject
Parameters:
obj - The object to checked for equivalence.
Returns:
true when the objects are the same.
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Description copied from interface: DataTransferObject
DOCUMENT ME!

Specified by:
hashCode in interface DataTransferObject

getCharSet

public java.nio.charset.Charset getCharSet()
getCharSet purpose.

Description ...

Returns:

getContact

public ContactDTO getContact()
getContact purpose.

Description ...

Returns:

getMaxFeatures

public int getMaxFeatures()
getMaxFeatures purpose.

Description ...

Returns:

getNumDecimals

public int getNumDecimals()
getNumDecimals purpose.

Description ...

Returns:

getSchemaBaseUrl

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

Description ...

Returns:

isVerbose

public boolean isVerbose()
isVerbose purpose.

Description ...

Returns:

setCharSet

public void setCharSet(java.nio.charset.Charset charset)
setCharSet purpose.

Description ...

Parameters:
charset -

setContact

public void setContact(ContactDTO contact)
setContact purpose.

Description ...

Parameters:
contact -

setMaxFeatures

public void setMaxFeatures(int i)
setMaxFeatures purpose.

Description ...

Parameters:
i -

setNumDecimals

public void setNumDecimals(int i)
setNumDecimals purpose.

Description ...

Parameters:
i -

setSchemaBaseUrl

public void setSchemaBaseUrl(java.lang.String url)
setSchemaBaseUrl purpose.

Description ...

Parameters:
url -

setVerbose

public void setVerbose(boolean b)
setVerbose purpose.

Description ...

Parameters:
b -

getLoggingLevel

public java.util.logging.Level getLoggingLevel()
getLoggingLevel purpose.

Description ...

Returns:

setLoggingLevel

public void setLoggingLevel(java.util.logging.Level level)
setLoggingLevel purpose.

Description ...

Parameters:
level -