svn-gvsig-desktop / branches / v10 / extensions / extGPE-gvSIG / src / org / gvsig / fmap / drivers / gpe / model / GPEFeature.java @ 18292
History | View | Annotate | Download (2.73 KB)
1 |
package org.gvsig.fmap.drivers.gpe.model; |
---|---|
2 |
|
3 |
import java.util.LinkedHashMap; |
4 |
|
5 |
import com.hardcode.gdbms.engine.values.Value; |
6 |
|
7 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
8 |
*
|
9 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
10 |
*
|
11 |
* This program is free software; you can redistribute it and/or
|
12 |
* modify it under the terms of the GNU General Public License
|
13 |
* as published by the Free Software Foundation; either version 2
|
14 |
* of the License, or (at your option) any later version.
|
15 |
*
|
16 |
* This program is distributed in the hope that it will be useful,
|
17 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
18 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
19 |
* GNU General Public License for more details.
|
20 |
*
|
21 |
* You should have received a copy of the GNU General Public License
|
22 |
* along with this program; if not, write to the Free Software
|
23 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
24 |
*
|
25 |
* For more information, contact:
|
26 |
*
|
27 |
* Generalitat Valenciana
|
28 |
* Conselleria d'Infraestructures i Transport
|
29 |
* Av. Blasco Ib??ez, 50
|
30 |
* 46010 VALENCIA
|
31 |
* SPAIN
|
32 |
*
|
33 |
* +34 963862235
|
34 |
* gvsig@gva.es
|
35 |
* www.gvsig.gva.es
|
36 |
*
|
37 |
* or
|
38 |
*
|
39 |
* IVER T.I. S.A
|
40 |
* Salamanca 50
|
41 |
* 46005 Valencia
|
42 |
* Spain
|
43 |
*
|
44 |
* +34 963163400
|
45 |
* dac@iver.es
|
46 |
*/
|
47 |
/* CVS MESSAGES:
|
48 |
*
|
49 |
* $Id$
|
50 |
* $Log$
|
51 |
*
|
52 |
*/
|
53 |
/**
|
54 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es)
|
55 |
*/
|
56 |
public class GPEFeature { |
57 |
private GPEGeometry geometry = null; |
58 |
private LinkedHashMap elements = null; |
59 |
private Value id = null; |
60 |
private String name = null; |
61 |
private String typeName = null; |
62 |
|
63 |
public GPEFeature(Value id, String name, String typeName) { |
64 |
this();
|
65 |
this.id = id;
|
66 |
this.name = name;
|
67 |
this.typeName = typeName;
|
68 |
} |
69 |
|
70 |
public GPEFeature(){
|
71 |
elements = new LinkedHashMap(); |
72 |
} |
73 |
|
74 |
/**
|
75 |
* @return the id
|
76 |
*/
|
77 |
public Value getId() {
|
78 |
return id;
|
79 |
} |
80 |
|
81 |
/**
|
82 |
* @param id the id to set
|
83 |
*/
|
84 |
public void setId(Value id) { |
85 |
this.id = id;
|
86 |
} |
87 |
|
88 |
/**
|
89 |
* @return the geometry
|
90 |
*/
|
91 |
public GPEGeometry getGeometry() {
|
92 |
return geometry;
|
93 |
} |
94 |
|
95 |
/**
|
96 |
* @param geometry the geometry to set
|
97 |
*/
|
98 |
public void setGeometry(GPEGeometry geometry) { |
99 |
this.geometry = geometry;
|
100 |
} |
101 |
|
102 |
/**
|
103 |
* @return the elements
|
104 |
*/
|
105 |
public LinkedHashMap getelements() { |
106 |
return elements;
|
107 |
} |
108 |
|
109 |
/**
|
110 |
* @param elements the elements to set
|
111 |
*/
|
112 |
public void setElements(LinkedHashMap elements) { |
113 |
this.elements = elements;
|
114 |
} |
115 |
|
116 |
/**
|
117 |
* It adds a new element
|
118 |
* @param element
|
119 |
* The element to add
|
120 |
*/
|
121 |
public void addElement(GPEElement element){ |
122 |
elements.put(element.getName(), element); |
123 |
} |
124 |
|
125 |
/**
|
126 |
* @return the name
|
127 |
*/
|
128 |
public String getName() { |
129 |
return name;
|
130 |
} |
131 |
|
132 |
/**
|
133 |
* @return the typeName
|
134 |
*/
|
135 |
public String getTypeName() { |
136 |
return typeName;
|
137 |
} |
138 |
} |