Class FieldRef
java.lang.Object
com.broadleafcommerce.search.api.domain.FieldRef
- All Implemented Interfaces:
Serializable
DTO for holding field definition data.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Short field name which will be used for request parameters for example in sorting and filtering, as well as response field names.getId()
The context ID of the field.The type to which this field belongs.getLabel()
The label of the field, suitable for display.int
hashCode()
boolean
Indicates if this field is translatable.void
setAbbreviation
(String abbreviation) Short field name which will be used for request parameters for example in sorting and filtering, as well as response field names.void
The context ID of the field.void
setIndexableType
(String indexableType) The type to which this field belongs.void
The label of the field, suitable for display.void
setTranslatable
(boolean translatable) Indicates if this field is translatable.toString()
-
Constructor Details
-
FieldRef
public FieldRef()
-
-
Method Details
-
getId
The context ID of the field.- Returns:
- the context ID of the field
-
getLabel
The label of the field, suitable for display.- Returns:
- label for the field, suitable for display
-
getIndexableType
The type to which this field belongs. Populated byIndexableType
type.- Returns:
- type to which this field belongs
-
getAbbreviation
Short field name which will be used for request parameters for example in sorting and filtering, as well as response field names.- Returns:
- short name for request and response field name
-
isTranslatable
public boolean isTranslatable()Indicates if this field is translatable.- Returns:
- whether this field is translatable
-
setId
The context ID of the field.- Parameters:
id
- the context ID of the field
-
setLabel
The label of the field, suitable for display.- Parameters:
label
- label for the field, suitable for display
-
setIndexableType
The type to which this field belongs. Populated byIndexableType
type.- Parameters:
indexableType
- type to which this field belongs
-
setAbbreviation
Short field name which will be used for request parameters for example in sorting and filtering, as well as response field names.- Parameters:
abbreviation
- short name for request and response field name
-
setTranslatable
public void setTranslatable(boolean translatable) Indicates if this field is translatable.- Parameters:
translatable
- whether this field is translatable
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-