Statistics
| Revision:

gvsig-raster / org.gvsig.raster / trunk / org.gvsig.raster / org.gvsig.raster.lib / org.gvsig.raster.lib.api / src / main / java / org / gvsig / fmap / dal / coverage / datastruct / Params.java @ 2443

History | View | Annotate | Download (3.11 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.fmap.dal.coverage.datastruct;
23

    
24
import java.util.List;
25

    
26
import org.gvsig.tools.persistence.Persistent;
27

    
28

    
29
/**
30
* Par?metros para los drivers de escritura. Las variables estaticas contenidas representan
31
* los tipos de par?metro posibles.
32
*
33
* @author Nacho Brodin (nachobrodin@gmail.com)
34
*/
35
public interface Params extends Persistent {
36
        public static final int NONE        = -1;
37
        public static final int CHECK       = 1;
38
        public static final int CHOICE      = 2;
39
        public static final int SLIDER      = 3;
40
        public static final int MULTI_CHECK = 4;
41

    
42

    
43
        /**
44
         * Obtiene el par?metro de la posici?n definida por param
45
         * @param param Posici?n del par?metro
46
         * @return Objeto Param
47
         */
48
        public Param getParam(int param);
49

    
50
        /**
51
         * Asigna el par?metro pasado a la lista de par?metros necesitados por el driver
52
         * @param param
53
         */
54
        public void setParam(Param param);
55
        
56
        /**
57
         * Asigna un par?metro. Si existe este lo reemplaza.
58
         * @param id Identificador
59
         * @param value Valor
60
         */
61
        public void setParam(String id, Object value);
62

    
63
        /**
64
         * Inicializa la lista de par?metros
65
         */
66
        public void clear();
67

    
68
        /**
69
         * Obtiene un par?metro de la lista a partir de su identificador
70
         * @param id Identificador del par?metro
71
         * @return Par?metro o null si no existe
72
         */
73
        public Param getParamById(String id);
74

    
75
        /**
76
         * Asigna un par?metro. Si existe este lo reemplaza.
77
         * @param id Identificador
78
         * @param value Valor
79
         * @param type Tipo
80
         * @param list Lista de valores
81
         */
82
        public void setParam(String id, Object value, int type, String[] list);
83

    
84
        /**
85
         * Borra los parametros asociados a ese id
86
         * @param id
87
         */
88
        public void removeParam(String id);
89

    
90
        /**
91
         * Asigna un valor para un par?metro existens. Si no existe no hace nada.
92
         *
93
         * @param id Identificador del par?metro
94
         * @param value Valor a asignar
95
         */
96
        public void changeParamValue(String id, Object value);
97

    
98
        /**
99
         * Obtiene el n?mero de par?metros.
100
         * @return N?mero de par?metros.
101
         */
102
        public int getNumParams();
103

    
104
        /**
105
         * Devuelve el array de los Params
106
         * @return
107
         */
108
        public List<Param> getParams();
109
        
110
        public void setManagerID(String id);
111
        
112
        /**
113
         * Clones this object
114
         * @return
115
         * @throws CloneNotSupportedException
116
         */
117
        public Object clone() throws CloneNotSupportedException;
118
}