Esri Geoportal Server
1.0

com.esri.gpt.catalog.discovery
Class DiscoveryResult

java.lang.Object
  extended by com.esri.gpt.catalog.discovery.DiscoveryComponent
      extended by com.esri.gpt.catalog.discovery.DiscoveryResult

public class DiscoveryResult
extends DiscoveryComponent

Represents the result of a query.


Constructor Summary
DiscoveryResult()
          Default constructor.
 
Method Summary
 void echo(StringBuffer sb)
          Appends property information for the component to a buffer.
 int getNumberOfHits()
          Gets the number of records hit.
 DiscoveredRecords getRecords()
          Gets the records that matched the query.
 void setNumberOfHits(int hits)
          Sets the number of records hit.
 
Methods inherited from class com.esri.gpt.catalog.discovery.DiscoveryComponent
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DiscoveryResult

public DiscoveryResult()
Default constructor.

Method Detail

getNumberOfHits

public int getNumberOfHits()
Gets the number of records hit.

Returns:
the number of hits

setNumberOfHits

public void setNumberOfHits(int hits)
Sets the number of records hit.

Parameters:
hits - the number of hits

getRecords

public DiscoveredRecords getRecords()
Gets the records that matched the query.

Returns:
the list of records

echo

public void echo(StringBuffer sb)
Appends property information for the component to a buffer.

Overrides:
echo in class DiscoveryComponent
Parameters:
sb - the buffer to use when appending information

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.