|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Type
- Generic Type. Term's value can be int, String, Date, Interval ...public interface ITerm<Type extends FacetsType>
Method Summary | |
---|---|
boolean |
addIndex(int id)
Add the index(id) of a document to the list of indexes of this Term. |
void |
clearIndexes()
Removes all ids of documents that are assigned to the specific Term from the indexes. |
boolean |
containsIndex(int id)
Returns true if the list of indexes contains the specified id of a document. |
java.util.HashSet<java.lang.Integer> |
getAllIndexes()
Returns all ids of documents that are indexed to the specific Term. |
Comparison |
getComparability()
Returns the comparability of Term. |
int |
getCount()
Returns the number of the legal objects that are classified under this term. |
java.util.HashSet<java.lang.Integer> |
getIndexes()
Returns the list of objects that have been indexed to this Term. |
java.util.HashSet<java.lang.Integer> |
getLegalIds(java.util.HashSet<java.lang.Integer> indexes)
Returns the intersection of the term's indexes with the legal indexes that have to be displayed. |
int |
getNumOfIndexes()
Returns the number of indexes of this term (cardinality of indexes). |
int |
getNumOfLegalIds(java.util.HashSet<java.lang.Integer> indexes)
Returns the size of the intersection of the term's indexes with the legal indexes that have to be displayed. |
int |
getTermId()
Return term's id. |
Type |
getTermValue()
Return term's value. |
boolean |
isComparable()
Returns true if Term is Comparable. |
boolean |
isIndexesListEmpty()
Returns true if the list of indexes of the Term is empty. |
boolean |
isOpened()
Returns true if the term belongs to a hierarchical facet and it must be opened in UI; false otherwise. |
boolean |
isZP(java.util.HashSet<java.lang.Integer> indexes)
Returns true if this term is a zoom-in point. |
boolean |
removeIndex(int id)
Returns true if the specified id removed correctly from the list of indexes of the Term. |
void |
setClosed()
Defines that the term will be displayed as closed in UI. |
void |
setComparability(Comparison comparability)
Sets Term's comparability. |
void |
setCount(int count)
Sets the number of the legal objects that are classified under this term. |
void |
setOpened()
Defines that the term will be displayed as opened in UI. |
void |
setTermId(int id)
Set term's id. |
void |
setTermValue(Type value)
Sets Term's value. |
java.lang.String |
toString()
Returns the String representation of the term. |
Method Detail |
---|
int getNumOfIndexes()
void setComparability(Comparison comparability)
comparability
- Term's comparability.Comparison getComparability()
java.lang.String toString()
toString
in class java.lang.Object
java.util.HashSet<java.lang.Integer> getIndexes()
void setTermValue(Type value)
id
- The new name of term.boolean isZP(java.util.HashSet<java.lang.Integer> indexes)
indexes
- the legal ids of documents that have to be displayed.
java.util.HashSet<java.lang.Integer> getLegalIds(java.util.HashSet<java.lang.Integer> indexes)
indexes
- the legal ids of documents that have to be displayed.
int getNumOfLegalIds(java.util.HashSet<java.lang.Integer> indexes)
indexes
- the legal ids of documents that have to be displayed.
void setTermId(int id)
id
- The new id of term.Type getTermValue()
int getTermId()
boolean isComparable()
java.util.HashSet<java.lang.Integer> getAllIndexes()
void clearIndexes()
boolean addIndex(int id)
boolean containsIndex(int id)
boolean removeIndex(int id)
boolean isIndexesListEmpty()
boolean isOpened()
void setOpened()
void setClosed()
int getCount()
void setCount(int count)
count
- the number of the legal objects that are classified under this term.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |