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