01: //=============================================================================
02: //=== Copyright (C) 2001-2007 Food and Agriculture Organization of the
03: //=== United Nations (FAO-UN), United Nations World Food Programme (WFP)
04: //=== and United Nations Environment Programme (UNEP)
05: //===
06: //=== This program is free software; you can redistribute it and/or modify
07: //=== it under the terms of the GNU General Public License as published by
08: //=== the Free Software Foundation; either version 2 of the License, or (at
09: //=== your option) any later version.
10: //===
11: //=== This program is distributed in the hope that it will be useful, but
12: //=== WITHOUT ANY WARRANTY; without even the implied warranty of
13: //=== MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: //=== General Public License for more details.
15: //===
16: //=== You should have received a copy of the GNU General Public License
17: //=== along with this program; if not, write to the Free Software
18: //=== Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19: //===
20: //=== Contact: Jeroen Ticheler - FAO - Viale delle Terme di Caracalla 2,
21: //=== Rome - Italy. email: geonetwork@osgeo.org
22: //==============================================================================
23:
24: package org.wfp.vam.intermap.kernel.map.mapServices.wms.schema.type;
25:
26: /**
27: * @author ETj
28: */
29: public interface WMSCapabilities {
30: public enum WMSVer {
31: V100("1.0.0"), V110("1.1.0"), V111("1.1.1"), V130("1.3.0");
32:
33: private String _verString;
34:
35: private WMSVer(String v) {
36: _verString = v;
37: System.out.println("CREATING VERSION " + this .name()
38: + " with string '" + v);//+"' on map " + _map );
39: }
40:
41: public String toString() {
42: return _verString;
43: }
44:
45: public static WMSVer parse(String ver) {
46: for (WMSVer v : WMSVer.values())
47: if (v.toString().equals(ver))
48: return v;
49: System.out
50: .println("WARNING: WMSVer: version '"
51: + ver
52: + "' is not defined internally. Please update the internal version list.");
53: return null;
54: }
55: }
56:
57: public static final WMSVer DEFVERSION = WMSVer.V130;
58:
59: /**
60: * Method setService
61: */
62: public void setService(WMSService oservice);
63:
64: public WMSService getService();
65:
66: /**
67: * Sets Capability
68: */
69: public void setCapability(WMSCapability capability);
70:
71: public WMSCapability getCapability();
72:
73: /**
74: * Sets Version
75: */
76: public void setVersion(String version);
77:
78: public void setVersion(WMSVer version);
79:
80: public WMSVer getVersion();
81:
82: public void setUpdateSequence(String updateSequence);
83:
84: public String getUpdateSequence();
85:
86: }
|