| 
 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectestraier.pure.Document
Abstraction of document.
| Constructor Summary | |
| Document()Create a document object. | |
| Document(java.lang.String draft)Create a document object made from draft data. | |
| Method Summary | |
|  void | add_attr(java.lang.String name,
         java.lang.String value)Add an attribute. | 
|  void | add_hidden_text(java.lang.String text)Add a hidden sentence. | 
|  void | add_text(java.lang.String text)Add a sentence of text. | 
|  java.util.List | attr_names()Get a list of attribute names. | 
|  java.lang.String | attr(java.lang.String name)Get the value of an attribute. | 
|  java.lang.String | cat_texts()Concatenate sentences of the text. | 
|  java.lang.String | dump_draft()Dump draft data. | 
|  int | id()Get the ID number. | 
|  java.util.Map | keywords()Get attached keywords. | 
|  int | score()Get the substitute score. | 
|  void | set_keywords(java.util.Map kwords)Attach keywords. | 
|  java.util.List | texts()Get a list of sentences of the text. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public Document()
public Document(java.lang.String draft)
draft - a string of draft data.| Method Detail | 
public void add_attr(java.lang.String name,
                     java.lang.String value)
name - the name of an attribute.value - the value of the attribute.  If it is `null', the attribute is removed.public void add_hidden_text(java.lang.String text)
text - a hidden sentence.public void add_text(java.lang.String text)
text - sentence of text.public java.util.List attr_names()
public java.lang.String attr(java.lang.String name)
name - the name of an attribute.
public java.lang.String cat_texts()
public java.lang.String dump_draft()
public int id()
public java.util.Map keywords()
public int score()
public void set_keywords(java.util.Map kwords)
kwords - a map object of keywords.  Keys of the map should be keywords of the document
 and values should be their scores in decimal string.public java.util.List texts()
| 
 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||