Package org.craftercms.studio.api.v1.to
Class FacetTO
java.lang.Object
org.craftercms.studio.api.v1.to.FacetTO
Holds the data for a search facet
- Author:
- joseross
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
Indicates if the range is a dateprotected String
The name of the fieldprotected boolean
Indicates if the facet supports multiple values, defaults tofalse
protected String
The name of the facetprotected List
<FacetRangeTO> The ranges of the facet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetField()
getName()
boolean
isDate()
boolean
boolean
isRange()
void
setDate
(boolean date) void
void
setMultiple
(boolean multiple) void
void
setRanges
(List<FacetRangeTO> ranges)
-
Field Details
-
name
The name of the facet -
field
The name of the field -
ranges
The ranges of the facet -
date
protected boolean dateIndicates if the range is a date -
multiple
protected boolean multipleIndicates if the facet supports multiple values, defaults tofalse
-
-
Constructor Details
-
FacetTO
public FacetTO()
-
-
Method Details
-
getName
-
setName
-
getField
-
setField
-
getRanges
-
setRanges
-
isRange
public boolean isRange() -
isDate
public boolean isDate() -
setDate
public void setDate(boolean date) -
isMultiple
public boolean isMultiple() -
setMultiple
public void setMultiple(boolean multiple)
-