Java Doc for DataDTO.java in  » GIS » GeoServer » org » vfny » geoserver » global » dto » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » GeoServer » org.vfny.geoserver.global.dto 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.vfny.geoserver.global.dto.DataDTO

DataDTO
final public class DataDTO implements DataTransferObject(Code)
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);
 ...
 

author:
   dzwiers, Refractions Research, Inc.
author:
   $Author: Alessio Fabiani (alessio.fabiani@gmail.com) $ (last modification)
author:
   $Author: Simone Giannecchini (simboss1@gmail.com) $ (last modification)
version:
   $Id: DataDTO.java 6326 2007-03-15 18:36:40Z jdeolive $
See Also:   DataSource
See Also:   FeatureTypeInfo
See Also:   StyleConfig



Constructor Summary
public  DataDTO()
     Data constructor.
public  DataDTO(DataDTO dto)
     Creates a duplicate of the provided DataDTO using deep copy.

Creates a copy of the Data provided.


Method Summary
public  Objectclone()
     Implement clone as a Deep copy.
public  booleanequals(Object other)
     Implement equals as part of the Object contract.

Recursively tests to determine if the object passed in is a copy of this object.


Parameters:
  other - The Data object to test.
public  MapgetCoverages()
    
public  MapgetDataStores()
     Retrive a Map of DataStoreInfoDTO by "dataStoreID".
public  StringgetDefaultNameSpacePrefix()
     Return the getDefaultNameSpace.
public  MapgetFeaturesTypes()
     Retrive Map of FeatureTypeInfoDTO by "dataStoreID.typeName".
public  MapgetFormats()
     Retrive a Map of CoverageStoreInfoDTO by "formatID".
public  MapgetNameSpaces()
     Map of NamespaceDTO by "prefix".
public  MapgetStyles()
     Retrive Map of StyleDTO by "something?".
public  inthashCode()
     Implement hashCode as part of the Object contract.
public  voidsetCoverages(Map coverages)
    
public  voidsetDataStores(Map map)
     Replace DataStoreInfoDTO map.
public  voidsetDefaultNameSpacePrefix(String dnsp)
     Sets the default namespace.
public  voidsetFeaturesTypes(Map map)
     Set the FeatureTypeInfoDTO map.
public  voidsetFormats(Map map)
     Replace CoverageStoreInfoDTO map.
public  voidsetNameSpaces(Map map)
     Sets the NameSpaceInfoDTO map.
public  voidsetStyles(Map map)
     Set map of StyleDTO by "something?".


Constructor Detail
DataDTO
public DataDTO()(Code)
Data constructor.

does nothing




DataDTO
public DataDTO(DataDTO dto)(Code)
Creates a duplicate of the provided DataDTO using deep copy.

Creates a copy of the Data provided. If the Data provided is null then default values are used. All the datastructures are cloned.


Parameters:
  dto - The catalog to copy.
throws:
  NullPointerException - DOCUMENT ME!




Method Detail
clone
public Object clone()(Code)
Implement clone as a Deep copy. A copy of this Data
See Also:   java.lang.Object.clone



equals
public boolean equals(Object other)(Code)
Implement equals as part of the Object contract.

Recursively tests to determine if the object passed in is a copy of this object.


Parameters:
  other - The Data object to test. true when the object passed is the same as this object.
See Also:   java.lang.Object.equals(java.lang.Object)



getCoverages
public Map getCoverages()(Code)
Returns the coverages.



getDataStores
public Map getDataStores()(Code)
Retrive a Map of DataStoreInfoDTO by "dataStoreID". Map of DataStoreInfoDTO by "dataStoreID"



getDefaultNameSpacePrefix
public String getDefaultNameSpacePrefix()(Code)
Return the getDefaultNameSpace.

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.

Default namespace or null



getFeaturesTypes
public Map getFeaturesTypes()(Code)
Retrive Map of FeatureTypeInfoDTO by "dataStoreID.typeName". Map of FeatureTypeInfoDTO by "dataStoreID.typeName"



getFormats
public Map getFormats()(Code)
Retrive a Map of CoverageStoreInfoDTO by "formatID". Map of CoverageStoreInfoDTO by "formatID"



getNameSpaces
public Map getNameSpaces()(Code)
Map of NamespaceDTO by "prefix". Map of NamespaceDTO by "prefix".



getStyles
public Map getStyles()(Code)
Retrive Map of StyleDTO by "something?". Key is Style.id Map of StyleDTO by "something"?



hashCode
public int hashCode()(Code)
Implement hashCode as part of the Object contract. Service hashcode or 0
See Also:   java.lang.Object.hashCode



setCoverages
public void setCoverages(Map coverages)(Code)

Parameters:
  coverages - The coverages to set.



setDataStores
public void setDataStores(Map map)(Code)
Replace DataStoreInfoDTO map.
Parameters:
  map - Map of DataStoreInfoDTO by "dataStoreID"
throws:
  NullPointerException - DOCUMENT ME!



setDefaultNameSpacePrefix
public void setDefaultNameSpacePrefix(String dnsp)(Code)
Sets the default namespace.

Note the provided namespace must be present in the namespace map.


Parameters:
  dnsp - the default namespace prefix.
throws:
  NoSuchElementException - DOCUMENT ME!



setFeaturesTypes
public void setFeaturesTypes(Map map)(Code)
Set the FeatureTypeInfoDTO map.

The dataStoreID used for the map must be in datastores.


Parameters:
  map - of FeatureTypeInfoDTO by "dataStoreID.typeName"
throws:
  NullPointerException - DOCUMENT ME!



setFormats
public void setFormats(Map map)(Code)
Replace CoverageStoreInfoDTO map.
Parameters:
  map - Map of CoverageStoreInfoDTO by "formatID"
throws:
  NullPointerException - DOCUMENT ME!



setNameSpaces
public void setNameSpaces(Map map)(Code)
Sets the NameSpaceInfoDTO map.

The default prefix is not changed by this operation.


Parameters:
  map - of NameSpaceInfoDTO by "prefix"
throws:
  NullPointerException - DOCUMENT ME!



setStyles
public void setStyles(Map map)(Code)
Set map of StyleDTO by "something?".
Parameters:
  map - Map of StyleDTO by "someKey"?
throws:
  NullPointerException - DOCUMENT ME!



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.