Revision 103 org.gvsig.gazetteer/trunk/org.gvsig.gazetteer/org.gvsig.gazetteer.lib/src/main/java/org/gvsig/gazetteer/querys/Feature.java
Feature.java | ||
---|---|---|
42 | 42 |
package org.gvsig.gazetteer.querys; |
43 | 43 |
import java.awt.geom.Point2D; |
44 | 44 |
|
45 |
import org.gvsig.fmap.geom.primitive.Point; |
|
46 |
|
|
45 | 47 |
/** |
46 | 48 |
* This class represents a Feature into the WFS context |
47 |
*
|
|
48 |
*
|
|
49 |
* |
|
50 |
* |
|
49 | 51 |
* @author Jorge Piera Llodra (piera_jor@gva.es) |
50 | 52 |
*/ |
51 | 53 |
public class Feature { |
52 | 54 |
private String Id; |
53 | 55 |
private String Name; |
54 | 56 |
private String Description; |
55 |
private Point2D coordinates;
|
|
57 |
private Point coordinates; |
|
56 | 58 |
|
57 | 59 |
/** |
58 |
* @param id
|
|
59 |
* @param name
|
|
60 |
* @param description
|
|
61 |
* @param coordinates
|
|
60 |
* @param id |
|
61 |
* @param name |
|
62 |
* @param description |
|
63 |
* @param coordinates |
|
62 | 64 |
*/ |
63 |
public Feature(String id, String name, String description, Point2D coordinates) {
|
|
65 |
public Feature(String id, String name, String description, Point coordinates) {
|
|
64 | 66 |
super(); |
65 | 67 |
Id = id; |
66 | 68 |
Name = name; |
67 | 69 |
Description = description; |
68 | 70 |
this.coordinates = coordinates; |
69 |
}
|
|
71 |
} |
|
70 | 72 |
|
71 | 73 |
/** |
72 |
*
|
|
73 |
*
|
|
74 |
*
|
|
74 |
* |
|
75 |
* |
|
76 |
* |
|
75 | 77 |
* @return Returns the coordinates. |
76 | 78 |
*/ |
77 |
public Point2D getCoordinates() {
|
|
79 |
public Point getCoordinates() {
|
|
78 | 80 |
return coordinates; |
79 |
}
|
|
81 |
} |
|
80 | 82 |
|
81 | 83 |
/** |
82 |
*
|
|
83 |
*
|
|
84 |
*
|
|
84 |
* |
|
85 |
* |
|
86 |
* |
|
85 | 87 |
* @param coordinates The coordinates to set. |
86 | 88 |
*/ |
87 |
public void setCoordinates(Point2D coordinates) {
|
|
89 |
public void setCoordinates(Point coordinates) {
|
|
88 | 90 |
this.coordinates = coordinates; |
89 |
}
|
|
91 |
} |
|
90 | 92 |
|
91 | 93 |
/** |
92 |
*
|
|
93 |
*
|
|
94 |
*
|
|
94 |
* |
|
95 |
* |
|
96 |
* |
|
95 | 97 |
* @return Returns the description. |
96 | 98 |
*/ |
97 |
public String getDescription() {
|
|
99 |
public String getDescription() { |
|
98 | 100 |
return Description; |
99 |
}
|
|
101 |
} |
|
100 | 102 |
|
101 | 103 |
/** |
102 |
*
|
|
103 |
*
|
|
104 |
*
|
|
104 |
* |
|
105 |
* |
|
106 |
* |
|
105 | 107 |
* @param description The description to set. |
106 | 108 |
*/ |
107 |
public void setDescription(String description) {
|
|
109 |
public void setDescription(String description) { |
|
108 | 110 |
Description = description; |
109 |
}
|
|
111 |
} |
|
110 | 112 |
|
111 | 113 |
/** |
112 |
*
|
|
113 |
*
|
|
114 |
*
|
|
114 |
* |
|
115 |
* |
|
116 |
* |
|
115 | 117 |
* @return Returns the id. |
116 | 118 |
*/ |
117 |
public String getId() {
|
|
119 |
public String getId() { |
|
118 | 120 |
return Id; |
119 |
}
|
|
121 |
} |
|
120 | 122 |
|
121 | 123 |
/** |
122 |
*
|
|
123 |
*
|
|
124 |
*
|
|
124 |
* |
|
125 |
* |
|
126 |
* |
|
125 | 127 |
* @param id The id to set. |
126 | 128 |
*/ |
127 |
public void setId(String id) {
|
|
129 |
public void setId(String id) { |
|
128 | 130 |
Id = id; |
129 |
}
|
|
131 |
} |
|
130 | 132 |
|
131 | 133 |
/** |
132 |
*
|
|
133 |
*
|
|
134 |
*
|
|
134 |
* |
|
135 |
* |
|
136 |
* |
|
135 | 137 |
* @return Returns the name. |
136 | 138 |
*/ |
137 |
public String getName() {
|
|
139 |
public String getName() { |
|
138 | 140 |
return Name; |
139 |
}
|
|
141 |
} |
|
140 | 142 |
|
141 | 143 |
/** |
142 |
*
|
|
143 |
*
|
|
144 |
*
|
|
144 |
* |
|
145 |
* |
|
146 |
* |
|
145 | 147 |
* @param name The name to set. |
146 | 148 |
*/ |
147 |
public void setName(String name) {
|
|
149 |
public void setName(String name) { |
|
148 | 150 |
Name = name; |
149 |
}
|
|
151 |
} |
|
150 | 152 |
|
151 | 153 |
/* |
152 | 154 |
* (non-Javadoc) |
153 | 155 |
* @see java.lang.Object#toString() |
154 | 156 |
*/ |
155 |
public String toString() {
|
|
157 |
public String toString() { |
|
156 | 158 |
return getDescription(); |
157 |
}
|
|
159 |
} |
|
158 | 160 |
} |
Also available in: Unified diff