Esri Geoportal Server
1.0

com.esri.gpt.catalog.discovery
Class DiscoveredRecord

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

public class DiscoveredRecord
extends DiscoveryComponent

Represents a record discovered through query.


Constructor Summary
DiscoveredRecord()
          Default constructor.
 
Method Summary
 void addField(Discoverable target, Object[] values)
          Adds a field to the record.
 void echo(StringBuffer sb)
          Appends property information for the component to a buffer.
 Collection<Returnable> getFields()
          Gets the returnable fields associated with the record.
 String getResponseXml()
          Gets the response XML.
 void setResponseXml(String xml)
          Sets the response XML.
 
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

DiscoveredRecord

public DiscoveredRecord()
Default constructor.

Method Detail

getFields

public Collection<Returnable> getFields()
Gets the returnable fields associated with the record.

Returns:
the returnable field collection

getResponseXml

public String getResponseXml()
Gets the response XML.
Applicable for non Dublin Core based responses.

Returns:
the response XML (can be null)

setResponseXml

public void setResponseXml(String xml)
Sets the response XML.
Applicable for non Dublin Core based responses.

Parameters:
xml - the response XML

addField

public void addField(Discoverable target,
                     Object[] values)
Adds a field to the record.

Parameters:
target - the discoverable property associated with the field
values - the data store values associated with the target

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.