|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.vfny.geoserver.global.dto.DataStoreInfoDTO
Data Transfer Object for GeoServer DataStore information.
Used to describe a datastore, typically one specified in the catalog.xml config file.
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.
Example: DataStoreInfoDTO dsiDto = new DataStoreInfoDTO();
dsiDto.setIde("myDataStore"); dsiDto.setEnabled(true); dsiDto.setTile("My
Data Store"); Map m = new HashMap(); m.put("key","param");
dsiDto.setConnectionParams(m);
Constructor Summary | |
DataStoreInfoDTO()
DataStoreInfo constructor. |
|
DataStoreInfoDTO(DataStoreInfoDTO dto)
DataStoreInfo constructor. |
Method Summary | |
java.lang.Object |
clone()
Implement clone. |
boolean |
equals(java.lang.Object obj)
Implement equals. |
java.lang.String |
getAbstract()
Short description of DataStore |
java.util.Map |
getConnectionParams()
Map of param:value both of which are represented as text. |
java.lang.String |
getId()
Unique identifier representing this DataStore. |
java.lang.String |
getNameSpaceId()
Namespace prefix for this DataStore. |
java.lang.String |
getTitle()
Title for DataStore, used in error messages & configuration. |
int |
hashCode()
Implement hashCode. |
boolean |
isEnabled()
Value is true if the DataStore should be enabled. |
void |
setAbstract(java.lang.String description)
Updates the DataStore abstract. |
void |
setConnectionParams(java.util.Map map)
Provide DataStore connectin parameters. |
void |
setEnabled(boolean b)
setEnabled purpose. |
void |
setId(java.lang.String identifier)
Sets the unique identifier for this DataStoreInfoDTO. |
void |
setNameSpaceId(java.lang.String prefix)
Sets the Namespace prefix for the DataStore. |
void |
setTitle(java.lang.String dataStoreTitle)
Set title used to identify this DataStore to the user. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DataStoreInfoDTO()
does nothing
public DataStoreInfoDTO(DataStoreInfoDTO dto)
Creates a copy of the DataStoreInfo provided. If the DataStoreInfo provided is null then default values are used. All the datastructures are cloned.
dto
- The datastore to copy.
java.lang.NullPointerException
- DOCUMENT ME!Method Detail |
public java.lang.Object clone()
creates a clone of this object
clone
in interface DataTransferObject
Object.clone()
public boolean equals(java.lang.Object obj)
recursively tests to determine if the object passed in is a copy of this object.
equals
in interface DataTransferObject
obj
- The DataStoreInfo object to test.
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in interface DataTransferObject
Object.hashCode()
public java.lang.String getAbstract()
public java.util.Map getConnectionParams()
The map is based on String Keys, and String values.
public boolean isEnabled()
true
if the DataStore should be enabled.
public java.lang.String getId()
This value is used to refer to this DataStore by FeatureTypeInfoDTO.
public java.lang.String getNameSpaceId()
prefix
for this DataStore.
prefix
used for GML encodingpublic java.lang.String getTitle()
public void setAbstract(java.lang.String description)
description
- public void setConnectionParams(java.util.Map map)
Map is limited to text based keys and values
map
- public void setEnabled(boolean b)
Description ...
b
- public void setId(java.lang.String identifier)
identifier
- nonnull
identifier for DataStorepublic void setNameSpaceId(java.lang.String prefix)
prefix
- Namespace prefix used by DataStorepublic void setTitle(java.lang.String dataStoreTitle)
dataStoreTitle
- Title used to identify DataStore to user
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |