modnlp.tc.dstruct
public class ParsedDocument extends java.lang.Object
Constructor and Description |
---|
ParsedDocument() |
ParsedDocument(java.lang.String text,
java.lang.String id) |
ParsedDocument(java.util.Vector categs,
java.lang.String text,
java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
void |
addCategory(java.lang.String topic) |
void |
addText(java.lang.String text) |
java.util.Enumeration |
getCategories() |
java.util.Vector |
getCategVector() |
java.lang.String |
getId()
Get the value of id.
|
java.lang.String |
getText() |
boolean |
isOfCategory(java.lang.String cat) |
void |
setId(java.lang.String v)
Set the value of id.
|
void |
setText(java.lang.String text) |
java.lang.String |
toString() |
public ParsedDocument(java.util.Vector categs, java.lang.String text, java.lang.String id)
public ParsedDocument(java.lang.String text, java.lang.String id)
public ParsedDocument()
public void addCategory(java.lang.String topic)
public void addText(java.lang.String text)
public java.util.Enumeration getCategories()
public java.util.Vector getCategVector()
public java.lang.String getText()
public void setText(java.lang.String text)
public boolean isOfCategory(java.lang.String cat)
public java.lang.String getId()
public void setId(java.lang.String v)
v
- Value to assign to id.public java.lang.String toString()
toString
in class java.lang.Object