Class FieldVariant
java.lang.Object
com.broadleafcommerce.search.api.domain.FieldVariant
- All Implemented Interfaces:
Serializable
A specific variant of a field representing the concrete indexed version with a type.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
getField()
The field which this variant represents.getType()
The general type of value stored in this field.int
hashCode()
boolean
Determines whether or not this variant should be included in the search response.void
The field which this variant represents.void
setIncludeInResponse
(boolean includeInResponse) Determines whether or not this variant should be included in the search response.void
The general type of value stored in this field.toString()
-
Constructor Details
-
FieldVariant
public FieldVariant()
-
-
Method Details
-
getField
The field which this variant represents.- Returns:
- field which this variant represents
-
getType
The general type of value stored in this field.Should be a value of
FieldType
- Returns:
- value type stored in this field
-
isIncludeInResponse
public boolean isIncludeInResponse()Determines whether or not this variant should be included in the search response. This must be a stored value in the search index.- Returns:
- should this be included in the search response?
-
setField
The field which this variant represents.- Parameters:
field
- field which this variant represents
-
setType
The general type of value stored in this field.Should be a value of
FieldType
- Parameters:
type
- value type stored in this field
-
setIncludeInResponse
public void setIncludeInResponse(boolean includeInResponse) Determines whether or not this variant should be included in the search response. This must be a stored value in the search index.- Parameters:
includeInResponse
- Should this field be included in the search response?
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-