Class SearchFacet
- java.lang.Object
-
- org.craftercms.studio.model.search.SearchFacet
-
public class SearchFacet extends Object
Holds the data for a single facet- Author:
- joseross
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
date
Indicates if the facet values are datesprotected boolean
multiple
Indicates if the facet supports multiple valuesprotected String
name
The label of the facetprotected boolean
range
Indicates if the facet values are rangesprotected Map<Object,Object>
values
The values and counts of the facet
-
Constructor Summary
Constructors Constructor Description SearchFacet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Map<Object,Object>
getValues()
boolean
isDate()
boolean
isMultiple()
boolean
isRange()
void
setDate(boolean date)
void
setMultiple(boolean multiple)
void
setName(String name)
void
setRange(boolean range)
void
setValues(Map<Object,Object> values)
-
-
-
Field Detail
-
name
protected String name
The label of the facet
-
range
protected boolean range
Indicates if the facet values are ranges
-
date
protected boolean date
Indicates if the facet values are dates
-
multiple
protected boolean multiple
Indicates if the facet supports multiple values
-
-
Method Detail
-
getName
public String getName()
-
setName
public void setName(String name)
-
isRange
public boolean isRange()
-
setRange
public void setRange(boolean range)
-
isMultiple
public boolean isMultiple()
-
setMultiple
public void setMultiple(boolean multiple)
-
isDate
public boolean isDate()
-
setDate
public void setDate(boolean date)
-
-