FreeCBR
Class WebResult

java.lang.Object
  extended by FreeCBR.WebResult

public class WebResult
extends java.lang.Object

This class contains results from CBR web queries. WebResult.result.length tells the number of result cases of the search. Typically the following loops through all results:
WebResult wr = cbr.search(req);
for (int i = 0; i < wr.result.length; i++)
{
System.out.println(wr.result[i].toString());
}

Since:
1.0
Author:
Lars Johanson

Field Summary
static java.lang.String FEATURE_PREFIX
          The feature search string prefix
static java.lang.String OPTION_PREFIX
          The search distance string prefix
 CBRResult[] result
          The result of the search
static java.lang.String SCALE_PREFIX
          The search scale string prefix
 int[] searchOptions
          The distances of the search
 int[] searchScales
          The scale of the search
 int[] searchTerms
          The types of the search
 Feature[] searchValues
          The searched values (in String format)
 int[] searchWeights
          The searched weights
static java.lang.String TERM_PREFIX
          The search type string prefix
static java.lang.String WEIGHT_PREFIX
          The search weight string prefix
 
Constructor Summary
WebResult(CBR cbr, java.lang.Object req)
          Creates a Result and initiates it
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

result

public CBRResult[] result
The result of the search


searchValues

public Feature[] searchValues
The searched values (in String format)


searchWeights

public int[] searchWeights
The searched weights


searchTerms

public int[] searchTerms
The types of the search


searchScales

public int[] searchScales
The scale of the search


searchOptions

public int[] searchOptions
The distances of the search


FEATURE_PREFIX

public static final java.lang.String FEATURE_PREFIX
The feature search string prefix

See Also:
Constant Field Values

WEIGHT_PREFIX

public static final java.lang.String WEIGHT_PREFIX
The search weight string prefix

See Also:
Constant Field Values

TERM_PREFIX

public static final java.lang.String TERM_PREFIX
The search type string prefix

See Also:
Constant Field Values

SCALE_PREFIX

public static final java.lang.String SCALE_PREFIX
The search scale string prefix

See Also:
Constant Field Values

OPTION_PREFIX

public static final java.lang.String OPTION_PREFIX
The search distance string prefix

See Also:
Constant Field Values
Constructor Detail

WebResult

public WebResult(CBR cbr,
                 java.lang.Object req)
          throws java.lang.Exception
Creates a Result and initiates it

Parameters:
cbr - the CBR that contains the data and can perform the actual search
req - the query in web style. MultiString values may use feati=A&feati=B... or feati=A;B....
Throws:
java.lang.Exception
Since:
1.0


Public Domain