org.archive.wayback.core
Class SearchResult

java.lang.Object
  extended by org.archive.wayback.core.SearchResult
Direct Known Subclasses:
CaptureSearchResult, UrlSearchResult

public class SearchResult
extends Object

Version:
$Date: 2010-09-29 05:28:38 +0700 (Wed, 29 Sep 2010) $, $Revision: 3262 $
Author:
brad

Field Summary
protected  HashMap<String,String> data
          Expandable Data bag for String to String tuples -- who knows what data we'll want to put in an Index.
static String RESULT_TRUE_VALUE
           
 
Constructor Summary
SearchResult()
           
 
Method Summary
protected  String dateToTS(Date date)
           
 void fromCanonicalStringMap(Map<String,String> canonical)
           
 String get(String key)
           
 boolean getBoolean(String key)
           
 void put(String key, String value)
           
 void putBoolean(String key, boolean value)
           
 Map<String,String> toCanonicalStringMap()
           
protected  Date tsToDate(String timestamp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESULT_TRUE_VALUE

public static final String RESULT_TRUE_VALUE
See Also:
Constant Field Values

data

protected HashMap<String,String> data
Expandable Data bag for String to String tuples -- who knows what data we'll want to put in an Index. Perhaps this should BE a Properties, instead of HAVEing a Properties.. This way, we could add an extra, 'type' field that would allow discrimination/hinting at what kind of data might be found in the Properties...

Constructor Detail

SearchResult

public SearchResult()
Method Detail

get

public String get(String key)

put

public void put(String key,
                String value)

getBoolean

public boolean getBoolean(String key)

putBoolean

public void putBoolean(String key,
                       boolean value)

dateToTS

protected String dateToTS(Date date)

tsToDate

protected Date tsToDate(String timestamp)

toCanonicalStringMap

public Map<String,String> toCanonicalStringMap()

fromCanonicalStringMap

public void fromCanonicalStringMap(Map<String,String> canonical)


Copyright © 2005-2011 Internet Archive. All Rights Reserved.