Revision 34026 branches/v2_0_0_prep/libraries/libRemoteServices/src/org/gvsig/remoteclient/wfs/WFSServiceInformation.java
WFSServiceInformation.java | ||
---|---|---|
1 | 1 |
package org.gvsig.remoteclient.wfs; |
2 | 2 |
|
3 | 3 |
import java.util.HashMap; |
4 |
import java.util.Iterator; |
|
4 | 5 |
import java.util.Vector; |
5 | 6 |
|
6 | 7 |
import org.gvsig.remoteclient.ogc.OGCClientOperation; |
... | ... | |
80 | 81 |
private HashMap operationsGet; |
81 | 82 |
private HashMap operationsPost; |
82 | 83 |
private HashMap namespaces; |
83 |
|
|
84 |
public WFSServiceInformation() { |
|
84 |
private int maxFeatures = -1; |
|
85 |
|
|
86 |
public WFSServiceInformation() { |
|
85 | 87 |
clear(); |
86 | 88 |
} |
87 | 89 |
|
... | ... | |
136 | 138 |
} |
137 | 139 |
return null; |
138 | 140 |
} |
141 |
|
|
142 |
public String getNamespacePrefix(String namespace){ |
|
143 |
Iterator it = namespaces.keySet().iterator(); |
|
144 |
while (it.hasNext()){ |
|
145 |
String prefix = (String)it.next(); |
|
146 |
if (namespace.equals(namespaces.get(prefix))){ |
|
147 |
return prefix; |
|
148 |
} |
|
149 |
} |
|
150 |
return null; |
|
151 |
} |
|
139 | 152 |
|
140 | 153 |
/* (non-Javadoc) |
141 | 154 |
* @see org.gvsig.remoteClient.ogc.OGCServiceInformation#createOperation(java.lang.String) |
... | ... | |
150 | 163 |
public OGCClientOperation createOperation(String name, String onlineResource) { |
151 | 164 |
return new WFSOperation(name, onlineResource); |
152 | 165 |
} |
166 |
|
|
167 |
|
|
168 |
|
|
169 |
/** |
|
170 |
* @return the maxFeatures |
|
171 |
*/ |
|
172 |
public int getMaxFeatures() { |
|
173 |
return maxFeatures; |
|
174 |
} |
|
175 |
|
|
176 |
|
|
177 |
/** |
|
178 |
* @param maxFeatures the maxFeatures to set |
|
179 |
*/ |
|
180 |
public void setMaxFeatures(int maxFeatures) { |
|
181 |
this.maxFeatures = maxFeatures; |
|
182 |
} |
|
153 | 183 |
} |
154 | 184 |
|
Also available in: Unified diff