|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectfleXplorer.Terms.Term<Type>
Type - Generic Type. Term's value can be int, String, Date, Interval ...public class Term<Type extends FacetsType>
| Constructor Summary | |
|---|---|
Term()
Constructs a Term with null value and set it non comparable. |
|
Term(Term<Type> term)
Constructs a Term with the same attributes of the given Term. |
|
Term(Type value,
Comparison comparability)
Constructs a Term with specified value and comparability. |
|
Term(Type value,
int id)
Constructs a Term with specific name and id, the Term is not comparable. |
|
Term(Type value,
int id,
Comparison comparability)
Constructs a Term with specific value, id and comparability. |
|
| 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. |
boolean |
equals(java.lang.Object obj)
|
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. |
int |
hashCode()
|
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. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Term()
public Term(Type value,
Comparison comparability)
value - term's value.comparability - term's comparability.
public Term(Type value,
int id,
Comparison comparability)
value - Term's value.id - Term's id.comparability - Term's comparability.
public Term(Type value,
int id)
value - Term's value.id - Term's id.public Term(Term<Type> term)
term - the given Term| Method Detail |
|---|
public boolean isOpened()
isOpened in interface ITerm<Type extends FacetsType>public void setOpened()
setOpened in interface ITerm<Type extends FacetsType>public void setClosed()
setClosed in interface ITerm<Type extends FacetsType>public int getNumOfIndexes()
getNumOfIndexes in interface ITerm<Type extends FacetsType>public void setComparability(Comparison comparability)
setComparability in interface ITerm<Type extends FacetsType>comparability - Term's comparability.public Comparison getComparability()
getComparability in interface ITerm<Type extends FacetsType>public java.lang.String toString()
toString in interface ITerm<Type extends FacetsType>toString in class java.lang.Objectpublic java.util.HashSet<java.lang.Integer> getIndexes()
getIndexes in interface ITerm<Type extends FacetsType>public void setTermValue(Type value)
setTermValue in interface ITerm<Type extends FacetsType>id - The new name of term.public boolean isZP(java.util.HashSet<java.lang.Integer> indexes)
isZP in interface ITerm<Type extends FacetsType>indexes - the legal ids of documents that have to be displayed.
public java.util.HashSet<java.lang.Integer> getLegalIds(java.util.HashSet<java.lang.Integer> indexes)
getLegalIds in interface ITerm<Type extends FacetsType>indexes - the legal ids of documents that have to be displayed.
public int getNumOfLegalIds(java.util.HashSet<java.lang.Integer> indexes)
getNumOfLegalIds in interface ITerm<Type extends FacetsType>indexes - the legal ids of documents that have to be displayed.
public void setTermId(int id)
setTermId in interface ITerm<Type extends FacetsType>id - The new id of term.public Type getTermValue()
getTermValue in interface ITerm<Type extends FacetsType>public int getTermId()
getTermId in interface ITerm<Type extends FacetsType>public boolean isComparable()
isComparable in interface ITerm<Type extends FacetsType>public java.util.HashSet<java.lang.Integer> getAllIndexes()
getAllIndexes in interface ITerm<Type extends FacetsType>public void clearIndexes()
clearIndexes in interface ITerm<Type extends FacetsType>public boolean addIndex(int id)
addIndex in interface ITerm<Type extends FacetsType>public boolean containsIndex(int id)
containsIndex in interface ITerm<Type extends FacetsType>public boolean removeIndex(int id)
removeIndex in interface ITerm<Type extends FacetsType>public boolean isIndexesListEmpty()
isIndexesListEmpty in interface ITerm<Type extends FacetsType>public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int getCount()
getCount in interface ITerm<Type extends FacetsType>public void setCount(int count)
setCount in interface ITerm<Type extends FacetsType>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 | |||||||||