package org.brain.bean;
import org.brain.dbo.DBOperate;
import org.brain.pojos.Document;
public class CreateWord {
private int id;
public CreateWord(int id) {
// TODO Auto-generated constructor stub
this.id = id;
}
public String getWordContext()
{
String context = null;
Document doc = DBOperate.getDocument(id);
context = "题目:"+ doc.getTitle()+"\n";
context += "作者:"+ doc.getAuthor()+"\n";
context += "关键字:"+ doc.getKeywords()+"\n";
context += "主题词:"+doc.getThemewords()+"\n";
context += "摘要:"+doc.getSummary();
return context;
}
}