Geomajas, Geomajas server: Main - commands 1.15.1

org.geomajas.command.dto
Class SearchByLocationResponse

java.lang.Object
  extended by org.geomajas.command.CommandResponse
      extended by org.geomajas.command.dto.SearchByLocationResponse
All Implemented Interfaces:
Serializable

@Api(allMethods=true)
public class SearchByLocationResponse
extends CommandResponse

Response object for SearchByLocationCommand.

Since:
1.6.0
Author:
Jan De Moerloose, Pieter De Graef, Joachim Van der Auwera
See Also:
Serialized Form

Constructor Summary
SearchByLocationResponse()
           
 
Method Summary
 boolean addLayer(String layerId, List<Feature> features)
          Add a features for a layer in the response.
 Map<String,List<Feature>> getFeatureMap()
          Get map with features.
 void setFeatureMap(Map<String,List<Feature>> featureMap)
          Set map with features.
 String toString()
           
 
Methods inherited from class org.geomajas.command.CommandResponse
getErrorMessages, getErrors, getExceptions, getExecutionTime, getId, isError, setExecutionTime, setId
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SearchByLocationResponse

public SearchByLocationResponse()
Method Detail

addLayer

public boolean addLayer(String layerId,
                        List<Feature> features)
Add a features for a layer in the response. Only adds features for a layer once.

Parameters:
layerId - layer id
features - features
Returns:
true when features were added, false when response already contained features for the layer

getFeatureMap

public Map<String,List<Feature>> getFeatureMap()
Get map with features. The map key is the layer id, the value are the found features.

Returns:
features map

setFeatureMap

public void setFeatureMap(Map<String,List<Feature>> featureMap)
Set map with features. The map key is the layer id, the value are the found features.

Parameters:
featureMap - features map

toString

public String toString()
Overrides:
toString in class CommandResponse

Geomajas, Geomajas server: Main - commands 1.15.1

Copyright © 2014 Geosparc. All Rights Reserved.