|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.search.api.helper.AnnotationListAccessor
org.eclipse.smila.search.api.helper.Facets
public class Facets
wrapper for annotations describing search facets (grouping, categorization, questions).
| Constructor Summary | |
|---|---|
Facets(java.lang.String attributeName,
java.util.Collection<Annotation> annotations)
create instance from data. |
|
Facets(java.lang.String attributeName,
java.util.List<Annotation> annotations)
create instance from data. |
|
| Method Summary | |
|---|---|
java.lang.Integer |
getCount(int index)
get count property of n'th facet. |
java.lang.String |
getName(int index)
get name property of n'th facet. |
Annotation |
getObjectFilter(int index)
get filter subannotation of n'th facet. |
java.lang.String |
getStringFilter(int index)
get value of string filter property of n'th facet. |
java.util.Map<java.lang.String,Facets> |
getSubFacets(int index)
get subfacets of n'th facet. |
boolean |
hasSubFacets(int index)
check if the n'th facet has subfacets. |
| Methods inherited from class org.eclipse.smila.search.api.helper.AnnotationListAccessor |
|---|
getAnnotation, getAnnotations, getAttributeName, getFloatProperty, getIntProperty, getProperty, getSource, length |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Facets(java.lang.String attributeName,
java.util.List<Annotation> annotations)
attributeName - name of faceted attributeannotations - list of facet annotations.
public Facets(java.lang.String attributeName,
java.util.Collection<Annotation> annotations)
attributeName - name of faceted attributeannotations - collection of facet annotations.| Method Detail |
|---|
public java.lang.String getName(int index)
index - position in facet list.
public java.lang.String getStringFilter(int index)
index - position in facet list.
public Annotation getObjectFilter(int index)
index - position in facet list.
public java.lang.Integer getCount(int index)
index - position in facet list.
public boolean hasSubFacets(int index)
index - position in facet list.
public java.util.Map<java.lang.String,Facets> getSubFacets(int index)
index - position in facet list.
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||