org.vfny.geoserver.global.dto
Class WFSDTO

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

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

Data Transfer Object for communication with GeoServer's Web Feature Service.

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
WFSDTO()
          WFS Data Transfer Object constructor.
WFSDTO(WFSDTO other)
          WFS constructor.
 
Method Summary
 java.lang.Object clone()
          Implement clone as a DeepCopy.
 boolean equals(java.lang.Object other)
          Implement equals.
 ServiceDTO getService()
          Provides access to the Service DTO object.
 int hashCode()
          Implement hashCode.
 boolean isGmlPrefixing()
          isGmlPrefixing purpose.
 void setGmlPrefixing(boolean b)
          setGmlPrefixing purpose.
 void setService(ServiceDTO dto)
          Set this WFS Data Tranfer Object to use the provided Service DTO.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WFSDTO

public WFSDTO()
WFS Data Transfer Object constructor. does nothing


WFSDTO

public WFSDTO(WFSDTO other)
WFS constructor.

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

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

clone

public java.lang.Object clone()
Implement clone as a DeepCopy.

Specified by:
clone in interface DataTransferObject
Returns:
A Deep Copy of this WFSDTO
See Also:
Object.clone()

equals

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

Specified by:
equals in interface DataTransferObject
Parameters:
other - Other object to test for equality
Returns:
true when the object passed is equal to 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()

getService

public ServiceDTO getService()
Provides access to the Service DTO object.

Note well that this is the internal ServiceDTO object used by the WFSDTO - any changes made to the result of this method will change the state of this WFSDTO object.

Returns:
ServericeDTO used by this WFSDTO

setService

public void setService(ServiceDTO dto)
Set this WFS Data Tranfer Object to use the provided Service DTO.

A copy of the provided dto is made.

Parameters:
dto - ServiceDTO used to configure this WFSDTO
Throws:
java.lang.NullPointerException - DOCUMENT ME!

isGmlPrefixing

public boolean isGmlPrefixing()
isGmlPrefixing purpose.

Description ...

Returns:

setGmlPrefixing

public void setGmlPrefixing(boolean b)
setGmlPrefixing purpose.

Description ...

Parameters:
b -