Class FilterAttributeMetadataImpl
- java.lang.Object
-
- com.adobe.cq.commerce.core.search.internal.models.FilterAttributeMetadataImpl
-
- All Implemented Interfaces:
FilterAttributeMetadata
public class FilterAttributeMetadataImpl extends Object implements FilterAttributeMetadata
-
-
Field Summary
Fields Modifier and Type Field Description static String
ATTRIBUTE_TYPE_FLOAT
An attribute of type Float.static String
ATTRIBUTE_TYPE_INT
An attribute of type Int.static String
ATTRIBUTE_TYPE_STRING
An attribute of type Int.static String
INPUT_TYPE_BOOLEAN
An input of type select.static String
INPUT_TYPE_PRICE
An input of type select.static String
INPUT_TYPE_SELECT
An input of type select.static String
INPUT_TYPE_TEXT
An input of type text.
-
Constructor Summary
Constructors Constructor Description FilterAttributeMetadataImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAttributeCode()
Get the attribute code for this filterable attribute.String
getAttributeInputType()
The input type for the attribute input in the commerce system admin / adminhtml.String
getAttributeType()
The type of the attribute in the commerce system.String
getFilterInputType()
Get the type of the filter.void
setAttributeCode(String attributeCode)
void
setAttributeInputType(String attributeInputType)
void
setAttributeType(String attributeType)
void
setFilterInputType(String filterInputType)
-
-
-
Field Detail
-
INPUT_TYPE_SELECT
public static final String INPUT_TYPE_SELECT
An input of type select.- See Also:
- Constant Field Values
-
INPUT_TYPE_TEXT
public static final String INPUT_TYPE_TEXT
An input of type text.- See Also:
- Constant Field Values
-
INPUT_TYPE_BOOLEAN
public static final String INPUT_TYPE_BOOLEAN
An input of type select.- See Also:
- Constant Field Values
-
INPUT_TYPE_PRICE
public static final String INPUT_TYPE_PRICE
An input of type select.- See Also:
- Constant Field Values
-
ATTRIBUTE_TYPE_INT
public static final String ATTRIBUTE_TYPE_INT
An attribute of type Int.- See Also:
- Constant Field Values
-
ATTRIBUTE_TYPE_STRING
public static final String ATTRIBUTE_TYPE_STRING
An attribute of type Int.- See Also:
- Constant Field Values
-
ATTRIBUTE_TYPE_FLOAT
public static final String ATTRIBUTE_TYPE_FLOAT
An attribute of type Float.- See Also:
- Constant Field Values
-
-
Method Detail
-
getFilterInputType
public String getFilterInputType()
Description copied from interface:FilterAttributeMetadata
Get the type of the filter.- Specified by:
getFilterInputType
in interfaceFilterAttributeMetadata
- Returns:
- string representing the type of filter
-
setFilterInputType
public void setFilterInputType(String filterInputType)
-
getAttributeCode
public String getAttributeCode()
Description copied from interface:FilterAttributeMetadata
Get the attribute code for this filterable attribute.- Specified by:
getAttributeCode
in interfaceFilterAttributeMetadata
- Returns:
- the attribute code or name of the attribute
-
setAttributeCode
public void setAttributeCode(String attributeCode)
-
getAttributeInputType
public String getAttributeInputType()
Description copied from interface:FilterAttributeMetadata
The input type for the attribute input in the commerce system admin / adminhtml.- Specified by:
getAttributeInputType
in interfaceFilterAttributeMetadata
- Returns:
- the input type of the input in the commerce system admin.
-
setAttributeInputType
public void setAttributeInputType(String attributeInputType)
-
getAttributeType
public String getAttributeType()
Description copied from interface:FilterAttributeMetadata
The type of the attribute in the commerce system.- Specified by:
getAttributeType
in interfaceFilterAttributeMetadata
- Returns:
- the attribute type
-
setAttributeType
public void setAttributeType(String attributeType)
-
-