Statistics
| Revision:

root / branches / v2_0_0_prep / libraries / libRemoteServices / src / org / gvsig / remoteclient / wmts / WMTSServiceInformation.java @ 38531

History | View | Annotate | Download (4.25 KB)

1 34391 nbrodin
/* gvSIG. Geographic Information System of the Valencian Government
2
*
3
* Copyright (C) 2007-2008 Infrastructures and Transports Department
4
* of the Valencian Government (CIT)
5
*
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License
8
* as published by the Free Software Foundation; either version 2
9
* of the License, or (at your option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
* GNU 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 Street, Fifth Floor, Boston,
19
* MA  02110-1301, USA.
20
*
21
*/
22
23
/*
24
* AUTHORS (In addition to CIT):
25
* 2009 Iver T.I.  {{Task}}
26
*/
27
28
package org.gvsig.remoteclient.wmts;
29
30
import java.util.Vector;
31
32
import org.gvsig.remoteclient.ogc.OGCClientOperation;
33
import org.gvsig.remoteclient.ogc.OGCServiceInformation;
34
import org.gvsig.remoteclient.utils.CapabilitiesTags;
35
36
/**
37
 * Class that represents the description of the WMS metadata.
38
 * The first part of the capabilities will return the service information
39
 * from the WMS, this class will hold this information.
40
 *
41
 * @author Nacho Brodin (nachobrodin@gmail.com)
42
 */
43
public class WMTSServiceInformation extends OGCServiceInformation {
44
    public String version;
45
    public String name;
46
    public String scope;
47
    public String title;
48
    public String abstr;
49
    public String keywords;
50
    public String fees;
51
    public String operationsInfo;
52
    public String personname;
53
    public String organization;
54
    public String function;
55
    public String addresstype;
56
    public String address;
57
    public String place;
58
    public String province;
59
    public String postcode;
60
    public String country;
61
    public String phone;
62
    public String fax;
63
    public String email;
64
        public Vector formats;
65
66
    public WMTSServiceInformation() {
67
        version = new String();
68
        name = new String();
69
        scope = new String();
70
        title = new String();
71
        abstr = new String();
72
        keywords = new String();
73
        fees = new String();
74
        operationsInfo = new String();
75
        personname = new String();
76
        organization = new String();
77
        function = new String();
78
        addresstype = new String();
79
        address = new String();
80
        place = new String();
81
        province = new String();
82
        postcode = new String();
83
        country = new String();
84
        phone = new String();
85
        fax = new String();
86
        email = new String();
87
        formats = new Vector();
88
    }
89
90
    public boolean isQueryable() {
91
            if (getOnlineResource(CapabilitiesTags.GETFEATUREINFO) != null)
92
                    return true;
93
            else
94
                    return false;
95
    }
96
97
    public boolean hasLegendGraphic() {
98
            if (getOnlineResource(CapabilitiesTags.GETLEGENDGRAPHIC) != null)
99
                    return true;
100
            else
101
                    return false;
102
    }
103
104
    public void clear() {
105
            version = new String();
106
        name = new String();
107
        scope = new String();
108
        title = new String();
109
        abstr = new String();
110
        keywords = new String();
111
        fees = new String();
112
        operationsInfo = new String();
113
        personname = new String();
114
        organization = new String();
115
        function = new String();
116
        addresstype = new String();
117
        address = new String();
118
        place = new String();
119
        province = new String();
120
        postcode = new String();
121
        country = new String();
122
        phone = new String();
123
        fax = new String();
124
        email = new String();
125
        formats = new Vector();
126
    }
127
128
        /* (non-Javadoc)
129
         * @see org.gvsig.remoteClient.ogc.OGCServiceInformation#createOperation(java.lang.String)
130
         */
131
        public OGCClientOperation createOperation(String name) {
132
                return new WMTSOperation(name);
133
        }
134
135
        /* (non-Javadoc)
136
         * @see org.gvsig.remoteClient.ogc.OGCServiceInformation#createOperation(java.lang.String, java.lang.String)
137
         */
138
        public OGCClientOperation createOperation(String name, String onlineResource) {
139
                return new WMTSOperation(name, onlineResource);
140
        }
141
142
 }