org.vfny.geoserver.global.dto
Class NameSpaceInfoDTO

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

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

Data Transfer Object for GeoServer NameSpaceInfo information.

Represents the portion of a namespace required for the configuration of geoserver. Defines namespaces to be used by the datastores.

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.

Jody here - does this actual defin the namespace used by the GML?

NameSpaceInfoDTO nsDto = new NameSpaceInfoDTO(); nsDto.setDefault(false); nsDto.setPrefix("me"); nsDto.setUri("dzwiers.refraction.net");


Constructor Summary
NameSpaceInfoDTO()
          NameSpaceConfig constructor.
NameSpaceInfoDTO(NameSpaceInfoDTO ns)
          NameSpaceConfig constructor.
 
Method Summary
 java.lang.Object clone()
          Implement clone.
 boolean equals(java.lang.Object obj)
          Implement equals.
 java.lang.String getPrefix()
          getPrefix purpose.
 java.lang.String getUri()
          getUri purpose.
 int hashCode()
          Implement hashCode.
 boolean isDefault()
          isDefault purpose.
 void setDefault(boolean b)
          setDdefault purpose.
 void setPrefix(java.lang.String string)
          setPrefix purpose.
 void setUri(java.lang.String string)
          setUri purpose.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameSpaceInfoDTO

public NameSpaceInfoDTO()
NameSpaceConfig constructor.

does nothing


NameSpaceInfoDTO

public NameSpaceInfoDTO(NameSpaceInfoDTO ns)
NameSpaceConfig constructor.

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

Parameters:
ns - The namespace 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 NameSpaceConfig
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 NameSpaceConfig 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:

getPrefix

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

Description ...

Returns:

getUri

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

Description ...

Returns:

setDefault

public void setDefault(boolean b)
setDdefault purpose.

Description ...

Parameters:
b -

setPrefix

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

Description ...

Parameters:
string -

setUri

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

Description ...

Parameters:
string -