Source Code Cross Referenced for DefaultServiceInfo.java in  » GIS » GeoTools-2.4.1 » org » geotools » catalog » defaults » 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 » GeoTools 2.4.1 » org.geotools.catalog.defaults 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         *    GeoTools - OpenSource mapping toolkit
003:         *    http://geotools.org
004:         *    (C) 2006, GeoTools Project Managment Committee (PMC)
005:         *    (C) 2005, Refractions Research Inc.
006:         *    
007:         *    This library is free software; you can redistribute it and/or
008:         *    modify it under the terms of the GNU Lesser General Public
009:         *    License as published by the Free Software Foundation;
010:         *    version 2.1 of the License.
011:         *
012:         *    This library is distributed in the hope that it will be useful,
013:         *    but WITHOUT ANY WARRANTY; without even the implied warranty of
014:         *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
015:         *    Lesser General Public License for more details.
016:         */
017:        package org.geotools.catalog.defaults;
018:
019:        import java.net.URI;
020:
021:        import javax.swing.Icon;
022:
023:        import org.geotools.catalog.ServiceInfo;
024:
025:        /**
026:         * Implementation of ServiceInfo.
027:         * 
028:         * @author Justin Deoliveira, The Open Planning Project
029:         *
030:         * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/main/src/main/java/org/geotools/catalog/defaults/DefaultServiceInfo.java $
031:         */
032:        public class DefaultServiceInfo implements  ServiceInfo {
033:
034:            protected String title, description, _abstract;
035:            protected URI schema;
036:            protected URI source, publisher;
037:            protected String[] keywords;
038:            protected Icon icon;
039:
040:            protected DefaultServiceInfo() {
041:                // to be used in an over-ride
042:            }
043:
044:            public DefaultServiceInfo(String title, String description,
045:                    String _abstract, URI source, URI publisher, URI schema,
046:                    String[] keywords, Icon icon) {
047:                this .title = title;
048:                this .description = description;
049:                this ._abstract = _abstract;
050:                this .schema = schema;
051:                this .source = source;
052:                this .publisher = publisher;
053:                this .keywords = keywords;
054:                this .icon = icon;
055:            }
056:
057:            /**
058:             * Returns the service title, may be empty or null if unsupported.
059:             * <p>
060:             * Note this is always metadata, and is in user terms.
061:             * </p>
062:             * 
063:             * @return title, may be empty, null if unsupported.
064:             */
065:            public String getTitle() {
066:                return title;
067:            }
068:
069:            public void setTitle(String title) {
070:                this .title = title;
071:            }
072:
073:            /**
074:             * Returns the service keywords. Maps to the Dublin Core Subject element.
075:             * 
076:             */
077:            public String[] getKeywords() { // aka Subject
078:                return keywords;
079:            }
080:
081:            public void setKeywords(String[] keywords) {
082:                this .keywords = keywords;
083:            }
084:
085:            /**
086:             * Returns the service description
087:             * 
088:             */
089:            public String getDescription() {
090:                return description;
091:            }
092:
093:            public void setDescription(String description) {
094:                this .description = description;
095:            }
096:
097:            /**
098:             * Return the service abstract
099:             * 
100:             */
101:            public String getAbstract() {
102:                return _abstract;
103:            }
104:
105:            public void setAbstract(String _abstract) {
106:                this ._abstract = _abstract;
107:            }
108:
109:            /**
110:             * Return the service publisher
111:             * 
112:             */
113:            public URI getPublisher() {
114:                return publisher;
115:            }
116:
117:            public void setPublisher(URI publisher) {
118:                this .publisher = publisher;
119:            }
120:
121:            /**
122:             * Returns the xml schema namespace for this service type. Maps to the Dublin Code Format
123:             * element
124:             * 
125:             */
126:            public URI getSchema() { // aka format
127:                return schema;
128:            }
129:
130:            public void setSchema(URI schema) {
131:                this .schema = schema;
132:            }
133:
134:            /**
135:             * Returns the service source. Maps to the Dublin Core Server Element
136:             * 
137:             */
138:            public URI getSource() { // aka server
139:                return source;
140:            }
141:
142:            public void setSource(URI source) {
143:                this .source = source;
144:            }
145:
146:            /**
147:             * Base symbology (with out decorators) representing this IService.
148:             * <p>
149:             * The Icon returned should conform the the Eclipse User Interface Guidelines (16x16
150:             * image with a 16x15 glyph centered).
151:             * </p>
152:             * <p>
153:             * This plug-in provides default images based on service type:
154:             * 
155:             * <pre><code>
156:             *  &lt;b&gt;return&lt;/b&gt; ISharedImages.getImagesDescriptor( IService );
157:             * </code></pre>
158:             * 
159:             * <ul>
160:             * <p>
161:             * Any LabelProvider should use the default image, a label decorator should be used to pick up
162:             * these images in a separate thread. This allows services like WFS make blocking request to
163:             * pick up the image from their GetCapabilities.
164:             * </p>
165:             * 
166:             * @return Icon symbolizing this IService.
167:             */
168:            public Icon getIcon() {
169:                return icon;
170:            }
171:
172:            public void setIcon(Icon icon) {
173:                this.icon = icon;
174:            }
175:
176:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.