DLESE Tools
v1.6.0

org.dlese.dpc.serviceclients.remotesearch
Class RemoteResultDoc

java.lang.Object
  extended by org.dlese.dpc.serviceclients.remotesearch.RemoteResultDoc
All Implemented Interfaces:
Serializable

public class RemoteResultDoc
extends Object
implements Serializable

This class wraps the individual items that are returned by RemoteSearcher.searchDocs(String). It is patterned after the ResultDoc class.

Author:
ostwald
See Also:
Serialized Form

Constructor Summary
RemoteResultDoc(Element record, RemoteSearcher rs)
          Construct a RemoteResultDoc from a MatchingRecord element (of the reponse from the UrlCheck Web Service)
RemoteResultDoc(String id, String url, String collection, RemoteSearcher rs)
          Constructor for the RemoteResultDoc object.
 
Method Summary
 String getCollection()
          Gets the collection attribute of the RemoteResultDoc object
 ADNItemDocReader getDocReader()
          Gets the docReader attribute of the RemoteResultDoc object which supports display of RemoteResultDoc instances via JSP (see ADNItemDocReader).
 String getDoctype()
          Gets the doctype attribute of the RemoteResultDoc object (hardcoded to "adn")
 GetRecordResponse getDocument()
          Gets the document attribute of the RemoteResultDoc object.
 String getId()
          Gets the id attribute of the RemoteResultDoc object (identifying the resource within DDS)
 String getReaderClass()
          Gets the readerClass attribute of the RemoteResultDoc object
 String getUrl()
          Gets the url attribute of the RemoteResultDoc object, which pionts to the resource on the web.
 String toString()
          A printable representation - used for debugging
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RemoteResultDoc

public RemoteResultDoc(String id,
                       String url,
                       String collection,
                       RemoteSearcher rs)
Constructor for the RemoteResultDoc object. Used to create a RemoteResultDoc from an alsoCatalogedBy element (see RemoteSearcher.searchDocs(java.lang.String))

Parameters:
id - id of item
url - url of item
collection - collection label of item
rs - instance of RemoteSearcher

RemoteResultDoc

public RemoteResultDoc(Element record,
                       RemoteSearcher rs)
Construct a RemoteResultDoc from a MatchingRecord element (of the reponse from the UrlCheck Web Service)

Parameters:
record - matching record Element
rs - instance of RemoteSearcher
Method Detail

getId

public String getId()
Gets the id attribute of the RemoteResultDoc object (identifying the resource within DDS)

Returns:
The id value

getDoctype

public final String getDoctype()
Gets the doctype attribute of the RemoteResultDoc object (hardcoded to "adn")

Returns:
The doctype value

getReaderClass

public final String getReaderClass()
Gets the readerClass attribute of the RemoteResultDoc object

Returns:
The readerClass value

getDocReader

public ADNItemDocReader getDocReader()
Gets the docReader attribute of the RemoteResultDoc object which supports display of RemoteResultDoc instances via JSP (see ADNItemDocReader).

Returns:
The docReader value

getDocument

public GetRecordResponse getDocument()
Gets the document attribute of the RemoteResultDoc object. The doc attribute is obtained from the RemoteSearcher instance and then cached for future access.

Returns:
The document value

getUrl

public String getUrl()
Gets the url attribute of the RemoteResultDoc object, which pionts to the resource on the web.

Returns:
The url value

getCollection

public String getCollection()
Gets the collection attribute of the RemoteResultDoc object

Returns:
The collection value (a human readable string)

toString

public String toString()
A printable representation - used for debugging

Overrides:
toString in class Object
Returns:
Description of the Return Value

DLESE Tools
v1.6.0