com.gisgraphy.domain.valueobject
Class StreetSearchResultsDto

java.lang.Object
  extended by com.gisgraphy.domain.valueobject.StreetSearchResultsDto

public class StreetSearchResultsDto
extends java.lang.Object

DTO (data transfer object) for a list of StreetDistance The node name is Constants.STREETSEARCHRESULTSDTO_JAXB_NAME

Author:
David Masclet

Constructor Summary
StreetSearchResultsDto()
          Default Constructor
StreetSearchResultsDto(java.util.List<StreetDistance> result, java.lang.Long QTime, java.lang.String query)
           
 
Method Summary
 int getNumFound()
           
 java.lang.Long getQTime()
           
 java.lang.String getQuery()
           
 java.util.List<StreetDistance> getResult()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreetSearchResultsDto

public StreetSearchResultsDto(java.util.List<StreetDistance> result,
                              java.lang.Long QTime,
                              java.lang.String query)
Parameters:
result - The GisFeatureDistance's Collection
QTime - The execution time
query - The search term

StreetSearchResultsDto

public StreetSearchResultsDto()
Default Constructor

Method Detail

getResult

public java.util.List<StreetDistance> getResult()
Returns:
The list of GisFeatureDistance

getNumFound

public int getNumFound()
Returns:
the numFound

getQTime

public java.lang.Long getQTime()
Returns:
the qTime (aka : the execution Time) in ms

getQuery

public java.lang.String getQuery()
Returns:
the name (prefix) of the street that has been searched


Copyright © 2010. All Rights Reserved.