|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.facet.associations.CategoryAssociationsContainer
public class CategoryAssociationsContainer
Holds CategoryAssociation
per CategoryPath
.
Constructor Summary | |
---|---|
CategoryAssociationsContainer()
|
Method Summary | |
---|---|
void |
clear()
Clears all category associations. |
CategoryAssociation |
getAssociation(CategoryPath category)
Returns the CategoryAssociation that was set for the
category , or null if none was defined. |
Iterator<CategoryPath> |
iterator()
|
void |
setAssociation(CategoryPath category,
CategoryAssociation association)
Adds the CategoryAssociation for the given category . |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CategoryAssociationsContainer()
Method Detail |
---|
public void setAssociation(CategoryPath category, CategoryAssociation association)
CategoryAssociation
for the given category
. Overrides any assocation that was previously set. It is ok to
pass null
, in which case the category will be treated as a regular
one (i.e. without association value).
public CategoryAssociation getAssociation(CategoryPath category)
CategoryAssociation
that was set for the
category
, or null
if none was defined.
public Iterator<CategoryPath> iterator()
iterator
in interface Iterable<CategoryPath>
public void clear()
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |