001: /*
002: * GeoTools - OpenSource mapping toolkit
003: * http://geotools.org
004: * (C) 2004-2006, GeoTools Project Managment Committee (PMC)
005: *
006: * This library is free software; you can redistribute it and/or
007: * modify it under the terms of the GNU Lesser General Public
008: * License as published by the Free Software Foundation;
009: * version 2.1 of the License.
010: *
011: * This library is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014: * Lesser General Public License for more details.
015: */
016: package org.geotools.data.ows;
017:
018: import java.net.URL;
019:
020: import org.opengis.metadata.citation.ResponsibleParty;
021:
022: /**
023: * This is a data model for the Open Web Service (OWS) metadata. This should be
024: * extended while implementing other OWSs. Name, Title and OnlineResource are
025: * required. Everything else is optional.
026: *
027: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/main/src/main/java/org/geotools/data/ows/Service.java $
028: */
029: public class Service {
030: /**
031: * The name of the Service (machine readible, typically one word) -
032: * Required
033: */
034: private String name;
035:
036: /** The title for the service (human readible) - Required */
037: private String title;
038:
039: /** The URL pointing to where this Service can be accessed - Required */
040: private URL onlineResource;
041:
042: /** Keywords that apply to the Service. Can be used for searching, etc */
043: private String[] keywordList;
044:
045: /**
046: * Abstract allows a description providing more information about the
047: * Service
048: */
049: private String _abstract;
050:
051: /**
052: * Information about a contact person for the service.
053: */
054: private ResponsibleParty contactInformation;
055:
056: private int layerLimit;
057: private int maxWidth;
058: private int maxHeight;
059:
060: public String get_abstract() {
061: return _abstract;
062: }
063:
064: public void set_abstract(String _abstract) {
065: this ._abstract = _abstract;
066: }
067:
068: public String[] getKeywordList() {
069: return keywordList;
070: }
071:
072: public void setKeywordList(String[] keywordList) {
073: this .keywordList = keywordList;
074: }
075:
076: public String getName() {
077: return name;
078: }
079:
080: public void setName(String name) {
081: this .name = name;
082: }
083:
084: public URL getOnlineResource() {
085: return onlineResource;
086: }
087:
088: public void setOnlineResource(URL onlineResource) {
089: this .onlineResource = onlineResource;
090: }
091:
092: public String getTitle() {
093: return title;
094: }
095:
096: public void setTitle(String title) {
097: this .title = title;
098: }
099:
100: public int getLayerLimit() {
101: return layerLimit;
102: }
103:
104: public void setLayerLimit(int layerLimit) {
105: this .layerLimit = layerLimit;
106: }
107:
108: public int getMaxHeight() {
109: return maxHeight;
110: }
111:
112: public void setMaxHeight(int maxHeight) {
113: this .maxHeight = maxHeight;
114: }
115:
116: public int getMaxWidth() {
117: return maxWidth;
118: }
119:
120: public void setMaxWidth(int maxWidth) {
121: this .maxWidth = maxWidth;
122: }
123:
124: /**
125: * Information about a contact person for the service. Uses the GeoAPI
126: * citation metadata model, which does not map directly to the WMS
127: * specification, but it is close.
128: *
129: * The Role field is not used.
130: *
131: */
132: public ResponsibleParty getContactInformation() {
133: return contactInformation;
134: }
135:
136: public void setContactInformation(
137: ResponsibleParty contactInformation) {
138: this.contactInformation = contactInformation;
139: }
140: }
|