Statistics
| Revision:

gvsig-raster / org.gvsig.raster.wmts / trunk / org.gvsig.raster.wmts / org.gvsig.raster.wmts.ogc / org.gvsig.raster.wmts.ogc.impl / src / main / java / org / gvsig / raster / wmts / ogc / impl / struct / WMTSDimensionImpl.java @ 2613

History | View | Annotate | Download (2.58 KB)

1
/* 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
package org.gvsig.raster.wmts.ogc.impl.struct;
23

    
24
import java.util.ArrayList;
25
import java.util.List;
26

    
27
import org.gvsig.raster.wmts.ogc.struct.WMTSDimension;
28

    
29

    
30
/**
31
 * Dimension 
32
 * @author Nacho Brodin (nachobrodin@gmail.com)
33
 */
34
public abstract class WMTSDimensionImpl extends WMTSBaseStruct implements WMTSDimension {
35
        private String          unitSymbol               = null;
36
        private String          defaultValue             = null;
37
        private boolean         current                  = false;
38
        private List<String>    availableValues          = null;
39
        private String          uom                      = null;
40
        
41
        public String getUnitSymbol() {
42
                return unitSymbol;
43
        }
44
        
45
        public void setUnitSymbol(String unitSymbol) {
46
                this.unitSymbol = unitSymbol;
47
        }
48
        
49
        public String getDefaultValue() {
50
                return defaultValue;
51
        }
52
        
53
        public void setDefaultValue(String defaultValue) {
54
                this.defaultValue = defaultValue;
55
        }
56
        
57
        public boolean isCurrent() {
58
                return current;
59
        }
60
        
61
        public void setCurrent(boolean current) {
62
                this.current = current;
63
        }
64
        
65
        public List<String> getValueList() {
66
                if(availableValues == null)
67
                        availableValues = new ArrayList<String>(); 
68
                return availableValues;
69
        }
70
        
71
        public void addAvailableValue(String value) {
72
                getValueList().add(value);
73
        }
74
        
75
        public String getUOM() {
76
                return uom;
77
        }
78
        
79
        public void setUOM(String uom) {
80
                this.uom = uom;
81
        }
82
        
83
        public void print() {
84
                System.out.println("*****WMTSDimension******");
85
                System.out.println("UnitSymbol:" + getUnitSymbol());
86
                System.out.println("DefaultValue:" + getDefaultValue());
87
                System.out.println("Current:" + isCurrent());
88
                for (int i = 0; i < getValueList().size(); i++) {
89
                        System.out.println("DimensionAvailable:" + getValueList().get(i));                        
90
                }
91
        }
92
}