/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package net.jcdev.search;
/**
*
* @author carlos
*/
public class Doc {
/**
*
* @param path A localizao real do documento no disco
* @param text O texto indexado
* @param fileType O tipo do documento indexado
* @param score
* @param snippet Document snippet
*/
public Doc(String path, String text, String fileType, float score, String snippet) {
this.path = path;
this.text = text;
this.fileType = fileType;
this.score = score;
this.snippet = snippet;
}
/**
*
* @param path A localizao real do documento no disco
* @param text O texto indexado
* @param fileType O tipo do documento indexado
* @param score Document score
* @param title Document title
* @param snippet Document snippet
*/
public Doc(String path, String text, String fileType, float score, String snippet, String title)
{
this.path = path;
this.text = text;
this.fileType = fileType;
this.score = score;
this.snippet = snippet;
this.title = title;
}
@Override
public String toString() {
return "<html><br>" + this.path + "<br></html>";
}
public Doc() {
}
private float score;
/**
* Get the value of score
*
* @return the value of score
*/
public float getScore() {
return score;
}
/**
* Set the value of score
*
* @param score new value of score
*/
public void setScore(float score) {
this.score = score;
}
private String path;
/**
* Get the value of path
*
* @return the value of path
*/
public String getPath() {
return path;
}
/**
* Set the value of path
*
* @param path new value of path
*/
public void setPath(String path) {
this.path = path;
}
private String text;
/**
* Get the value of text
*
* @return the value of text
*/
public String getText() {
return text;
}
/**
* Set the value of text
*
* @param text new value of text
*/
public void setText(String text) {
this.text = text;
}
private String fileType;
/**
* Get the value of fileType
*
* @return the value of fileType
*/
public String getFileType() {
return fileType;
}
/**
* Set the value of fileType
*
* @param fileType new value of fileType
*/
public void setFileType(String fileType) {
this.fileType = fileType;
}
private String snippet;
/**
* Get the value of snippet
*
* @return the value of snippet
*/
public String getSnippet() {
return snippet;
}
/**
* Set the value of snippet
*
* @param snippet new value of snippet
*/
public void setSnippet(String snippet) {
this.snippet = snippet;
}
private String title;
/**
* Get the value of title
*
* @return the value of title
*/
public String getTitle() {
return title;
}
/**
* Set the value of title
*
* @param title new value of title
*/
public void setTitle(String title) {
this.title = title;
}
}
|