|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttextclassifier.ARCBC.Document
public class Document
Class that represents one document with its attributes (or one row/object of the database)
Constructor Summary | |
---|---|
Document()
Constructor, which creates a noew instance of Document class |
Method Summary | |
---|---|
void |
addAttribute(java.lang.String attName,
double attValue)
adds a new attribute of type double into the document |
void |
addAttribute(java.lang.String attName,
float attValue)
adds a new attribute of type float into the document |
void |
addAttribute(java.lang.String attName,
int attValue)
adds a new attribute of type integer into the document |
void |
addAttribute(java.lang.String attName,
java.lang.String attValue)
adds a new attribute of type String into the document |
java.util.ArrayList<fitem> |
getAtts()
returns the set of attributes and their values |
java.lang.String |
getClas()
returns the class of the document |
void |
setClas(java.lang.String c)
sets a class of the document to a new value |
java.lang.String |
toString()
converts all attributes of a document into a string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Document()
Method Detail |
---|
public void addAttribute(java.lang.String attName, java.lang.String attValue)
attName
- string containing the name of the attributeattValue
- value of the attribute (string)public void addAttribute(java.lang.String attName, int attValue)
attName
- string containing the name of the attributeattValue
- value of the attribute (integer)public void addAttribute(java.lang.String attName, double attValue)
attName
- string containing the name of the attributeattValue
- value of the attribute (double)public void addAttribute(java.lang.String attName, float attValue)
attName
- string containing the name of the attributeattValue
- value of the attribute (float)public java.util.ArrayList<fitem> getAtts()
public void setClas(java.lang.String c)
c
- the name of a new classpublic java.lang.String getClas()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |