public class RemoteResultDoc
extends java.lang.Object
implements java.io.Serializable
RemoteSearcher.searchDocs(String)
. It is patterned after the ResultDoc
class.Constructor and Description |
---|
RemoteResultDoc(org.dom4j.Element record,
RemoteSearcher rs)
Construct a RemoteResultDoc from a MatchingRecord element (of the reponse
from the UrlCheck Web Service)
|
RemoteResultDoc(java.lang.String id,
java.lang.String url,
java.lang.String collection,
RemoteSearcher rs)
Constructor for the RemoteResultDoc object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.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 ). |
java.lang.String |
getDoctype()
Gets the doctype attribute of the RemoteResultDoc object (hardcoded to
"adn")
|
GetRecordResponse |
getDocument()
Gets the document attribute of the RemoteResultDoc object.
|
java.lang.String |
getId()
Gets the id attribute of the RemoteResultDoc object (identifying the
resource within DDS)
|
java.lang.String |
getReaderClass()
Gets the readerClass attribute of the RemoteResultDoc object
|
java.lang.String |
getUrl()
Gets the url attribute of the RemoteResultDoc object, which pionts to the
resource on the web.
|
java.lang.String |
toString()
A printable representation - used for debugging
|
public RemoteResultDoc(java.lang.String id, java.lang.String url, java.lang.String collection, RemoteSearcher rs)
RemoteSearcher.searchDocs(java.lang.String)
)id
- id of itemurl
- url of itemcollection
- collection label of itemrs
- instance of RemoteSearcher
public RemoteResultDoc(org.dom4j.Element record, RemoteSearcher rs)
record
- matching record Element
rs
- instance of RemoteSearcher
public java.lang.String getId()
public final java.lang.String getDoctype()
public final java.lang.String getReaderClass()
public ADNItemDocReader getDocReader()
ADNItemDocReader
).public GetRecordResponse getDocument()
RemoteSearcher
instance and then
cached for future access.public java.lang.String getUrl()
public java.lang.String getCollection()
public java.lang.String toString()
toString
in class java.lang.Object