~ubuntu-branches/ubuntu/trusty/hyperestraier/trusty-proposed

« back to all changes in this revision

Viewing changes to javapure/ResultDocument.java

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2006-11-14 05:28:32 UTC
  • mfrom: (2.1.4 feisty)
  • Revision ID: james.westby@ubuntu.com-20061114052832-0lzqzcefn8mt4yqe
Tags: 1.4.9-1.1
* Non-maintainer upload.
* High-urgency upload for RC bugfix.
* Set HOME=$(CURDIR)/junkhome when building, otherwise the package build
  will incorrectly look for headers there -- and fail when the directory
  exists and is unreadable, as happens sometimes on sudo-using
  autobuilders!

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*************************************************************************************************
2
2
 * Pure Java interface of Hyper Estraier
3
 
 *                                                      Copyright (C) 2004-2005 Mikio Hirabayashi
 
3
 *                                                      Copyright (C) 2004-2006 Mikio Hirabayashi
4
4
 *                                                                           All rights reserved.
5
5
 * This file is part of Hyper Estraier.
6
6
 * Redistribution and use in source and binary forms, with or without modification, are
45
45
  private String uri;
46
46
  private Map attrs;
47
47
  private String snippet;
48
 
  private String vector;
 
48
  private String keywords;
49
49
  //----------------------------------------------------------------
50
50
  // constructors
51
51
  //----------------------------------------------------------------
54
54
   * @param uri a string of the URI.
55
55
   * @param attrs a map object of attributes.
56
56
   * @param snippet a string of snippet.
 
57
   * @param keywords a string of keywords.
57
58
   */
58
 
  ResultDocument(String uri, Map attrs, String snippet, String vector){
 
59
  ResultDocument(String uri, Map attrs, String snippet, String keywords){
59
60
    this.uri = uri;
60
61
    this.attrs = attrs;
61
62
    this.snippet = snippet;
62
 
    this.vector = vector;
 
63
    this.keywords = keywords;
63
64
  }
64
65
  //----------------------------------------------------------------
65
66
  // public methods
94
95
  }
95
96
  /**
96
97
   * Get the snippet.
97
 
   * @return the snippet of the result document object.  There are tab separated values.  Each
98
 
   * line is a string to be shown.  Though most lines have only one field, some lines have two
99
 
   * fields.  If the second field exists, the first field is to be shown with highlighted, and
100
 
   * the second field means its normalized form.
 
98
   * @return a string of the snippet of the result document object.  There are tab separated
 
99
   * values.  Each line is a string to be shown.  Though most lines have only one field, some
 
100
   * lines have two fields.  If the second field exists, the first field is to be shown with
 
101
   * highlighted, and the second field means its normalized form.
101
102
   */
102
103
  public String snippet(){
103
104
    return snippet;
104
105
  }
105
106
  /**
106
 
   * Get the keyword vector.
107
 
   * @return the keyword vector of the result document object.  There are tab separated values.
108
 
   * Keywords and their scores come alternately.
 
107
   * Get keywords.
 
108
   * @return a string of serialized keywords of the result document object.  There are tab
 
109
   * separated values.  Keywords and their scores come alternately.
109
110
   */
110
 
  public String vector(){
111
 
    return vector;
 
111
  public String keywords(){
 
112
    return keywords;
112
113
  }
113
114
}
114
115