|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectfleXplorer.Types.Document
public class Document
| Constructor Summary | |
|---|---|
Document(int id,
float rank,
java.util.HashMap<java.lang.String,FacetsType> subjectTerms)
Constructs a Document. |
|
| Method Summary | |
|---|---|
int |
getId()
Returns the id of the document. |
float |
getRank()
Returns the rank of the document. |
FacetsType |
getSubjectTerm(java.lang.String facetName)
Returns the value of the term from a specific facet that document is classified under. |
java.util.HashMap<java.lang.String,FacetsType> |
getSubjectTerms()
Returns the values of the terms that document is classified under. |
void |
setSubjectTerm(java.lang.String facetName,
StringType subjectTerm)
Defines the value of the term of a specific facet that document is classified under. |
java.lang.String |
toString()
Returns the string representation of Document. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Document(int id,
float rank,
java.util.HashMap<java.lang.String,FacetsType> subjectTerms)
id - the id of the document.rank - the rank of the document (in case of integration with a WSE).subjectTerms - the values of the terms from each facet that document is classified under.| Method Detail |
|---|
public int getId()
public float getRank()
public FacetsType getSubjectTerm(java.lang.String facetName)
facetName - the name of the facet
public void setSubjectTerm(java.lang.String facetName,
StringType subjectTerm)
facetName - the name of the facetsubjectTerm - the value of the term that document is classified under.public java.util.HashMap<java.lang.String,FacetsType> getSubjectTerms()
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 | |||||||||