|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.vfny.geoserver.global.dto.DataDTO
Data Transfer Object used to represent GeoServer Catalog information.
Represents an instance of the catalog.xml file in the configuration of the server, along with associated configuration files for the feature types.
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:
DataDTO dDto = new DataDTO();
Map m = new HashMap();
NameSpaceInfoDTO ns = new NameSpaceInfoDTO();
ns.setUri("dzwiers.refractions.net");
m.put("nsDave",ns);
dDto.setNameSpaces(m);
ns = new NameSpaceInfoDTO();
ns.setUri("jgarnett.refractions.net");
ns.setDefault(true);
dDto.addNameSpace("nsJody"ns);
dDto.setDefaultNameSpace(ns);
...
DataSource
,
FeatureTypeInfo
,
StyleConfig
Constructor Summary | |
DataDTO()
Data constructor. |
|
DataDTO(DataDTO dto)
Creates a duplicate of the provided DataDTO using deep copy. |
Method Summary | |
java.lang.Object |
clone()
Implement clone as a Deep copy. |
boolean |
equals(java.lang.Object other)
Implement equals as part of the Object contract. |
java.util.Map |
getDataStores()
Retrive a Map of DataStoreInfoDTO by "dataStoreID". |
java.lang.String |
getDefaultNameSpacePrefix()
Return the getDefaultNameSpace. |
java.util.Map |
getFeaturesTypes()
Retrive Map of FeatureTypeInfoDTO by "dataStoreID.typeName". |
java.util.Map |
getNameSpaces()
Map of NamespaceDTO by "prefix". |
java.util.Map |
getStyles()
Retrive Map of StyleDTO by "something?". |
int |
hashCode()
Implement hashCode as part of the Object contract. |
void |
setDataStores(java.util.Map map)
Replace DataStoreInfoDTO map. |
void |
setDefaultNameSpacePrefix(java.lang.String dnsp)
Sets the default namespace. |
void |
setFeaturesTypes(java.util.Map map)
Set the FeatureTypeInfoDTO map. |
void |
setNameSpaces(java.util.Map map)
Sets the NameSpaceInfoDTO map. |
void |
setStyles(java.util.Map map)
Set map of StyleDTO by "something?". |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DataDTO()
does nothing
public DataDTO(DataDTO dto)
Creates a copy of the Data provided. If the Data provided is null then default values are used. All the datastructures are cloned.
dto
- The catalog to copy.
java.lang.NullPointerException
- DOCUMENT ME!Method Detail |
public java.lang.Object clone()
clone
in interface DataTransferObject
Object.clone()
public boolean equals(java.lang.Object other)
Recursively tests to determine if the object passed in is a copy of this object.
equals
in interface DataTransferObject
other
- The Data object to test.
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in interface DataTransferObject
Object.hashCode()
public java.util.Map getDataStores()
public java.lang.String getDefaultNameSpacePrefix()
May consider just returning the "prefix" of the default Namespace here. It is unclear what happens when we are starting out with a Empty DataDTO class.
null
public java.util.Map getFeaturesTypes()
public java.util.Map getNameSpaces()
public java.util.Map getStyles()
public void setDataStores(java.util.Map map)
map
- Map of DataStoreInfoDTO by "dataStoreID"
java.lang.NullPointerException
- DOCUMENT ME!public void setDefaultNameSpacePrefix(java.lang.String dnsp)
Note the provided namespace must be present in the namespace map.
dnsp
- the default namespace prefix.
java.util.NoSuchElementException
- DOCUMENT ME!public void setFeaturesTypes(java.util.Map map)
The dataStoreID used for the map must be in datastores.
map
- of FeatureTypeInfoDTO by "dataStoreID.typeName"
java.lang.NullPointerException
- DOCUMENT ME!public void setNameSpaces(java.util.Map map)
The default prefix is not changed by this operation.
map
- of NameSpaceInfoDTO by "prefix"
java.lang.NullPointerException
- DOCUMENT ME!public void setStyles(java.util.Map map)
map
- Map of StyleDTO by "someKey"?
java.lang.NullPointerException
- DOCUMENT ME!
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |