gvsig-raster / org.gvsig.raster / trunk / org.gvsig.raster / org.gvsig.raster.fmap / src / main / java / org / gvsig / raster / fmap / layers / DefaultLayerConfiguration.java @ 5462
History | View | Annotate | Download (2.6 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.fmap.layers; |
23 |
/**
|
24 |
* DefaultLayerConfiguration sirve para aquellos objetos que no puedan usar la
|
25 |
* configuracion de PluginServices, devolviendo siempre el valor por defecto.
|
26 |
*
|
27 |
* @version 14/01/2008
|
28 |
* @author BorSanZa - Borja S?nchez Zamorano (borja.sanchez@iver.es)
|
29 |
*/
|
30 |
public class DefaultLayerConfiguration implements IConfiguration { |
31 |
|
32 |
/*
|
33 |
* (non-Javadoc)
|
34 |
* @see org.gvsig.fmap.raster.conf.IConfiguration#getValueBoolean(java.lang.String, java.lang.Boolean)
|
35 |
*/
|
36 |
public Boolean getValueBoolean(String name, Boolean defaultValue) { |
37 |
return defaultValue;
|
38 |
} |
39 |
|
40 |
/*
|
41 |
* (non-Javadoc)
|
42 |
* @see org.gvsig.fmap.raster.conf.IConfiguration#getValueDouble(java.lang.String, java.lang.Double)
|
43 |
*/
|
44 |
public Double getValueDouble(String name, Double defaultValue) { |
45 |
return defaultValue;
|
46 |
} |
47 |
|
48 |
/*
|
49 |
* (non-Javadoc)
|
50 |
* @see org.gvsig.fmap.raster.conf.IConfiguration#getValueFloat(java.lang.String, java.lang.Float)
|
51 |
*/
|
52 |
public Float getValueFloat(String name, Float defaultValue) { |
53 |
return defaultValue;
|
54 |
} |
55 |
|
56 |
/*
|
57 |
* (non-Javadoc)
|
58 |
* @see org.gvsig.fmap.raster.conf.IConfiguration#getValueInteger(java.lang.String, java.lang.Integer)
|
59 |
*/
|
60 |
public Integer getValueInteger(String name, Integer defaultValue) { |
61 |
return defaultValue;
|
62 |
} |
63 |
|
64 |
/*
|
65 |
* (non-Javadoc)
|
66 |
* @see org.gvsig.fmap.raster.conf.IConfiguration#getValueLong(java.lang.String, java.lang.Long)
|
67 |
*/
|
68 |
public Long getValueLong(String name, Long defaultValue) { |
69 |
return defaultValue;
|
70 |
} |
71 |
|
72 |
/*
|
73 |
* (non-Javadoc)
|
74 |
* @see org.gvsig.fmap.raster.conf.IConfiguration#getValueString(java.lang.String, java.lang.String)
|
75 |
*/
|
76 |
public String getValueString(String name, String defaultValue) { |
77 |
return defaultValue;
|
78 |
} |
79 |
} |