Package com.hybris.backoffice.excel.data
Class SelectedAttribute
java.lang.Object
com.hybris.backoffice.excel.data.SelectedAttribute
- All Implemented Interfaces:
Comparable<SelectedAttribute>
Represents selected attribute which should be exported/imported. The object consists of isoCode for localized field,
getReferenceFormat for reference, defaultValues provided by user in excel sheet and attribute descriptor for given
attribute.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated, for removal: This API element is subject to removal in a future version.since 1808. -
Constructor Summary
ConstructorsConstructorDescriptionSelectedAttribute(AttributeDescriptorModel attributeDescriptor) SelectedAttribute(String isoCode, AttributeDescriptorModel attributeDescriptor) SelectedAttribute(String isoCode, String referenceFormat, String defaultValues, AttributeDescriptorModel attributeDescriptor) -
Method Summary
Modifier and TypeMethodDescriptionintbooleanDeprecated, for removal: This API element is subject to removal in a future version.since 1808.getName()inthashCode()booleanbooleanisRequired(String currentLanguageIsoCode) voidsetAttributeDescriptor(AttributeDescriptorModel attributeDescriptor) voidsetDefaultValues(String defaultValues) voidsetIsoCode(String isoCode) voidsetReferenceFormat(String referenceFormat)
-
Field Details
-
REFERENCE_PATTERN_SEPARATOR
Deprecated, for removal: This API element is subject to removal in a future version.since 1808. UseExcelTemplateConstants.REFERENCE_PATTERN_SEPARATORinstead.- See Also:
-
-
Constructor Details
-
SelectedAttribute
public SelectedAttribute() -
SelectedAttribute
-
SelectedAttribute
-
SelectedAttribute
public SelectedAttribute(String isoCode, String referenceFormat, String defaultValues, AttributeDescriptorModel attributeDescriptor)
-
-
Method Details
-
findDefaultValues
Deprecated, for removal: This API element is subject to removal in a future version.since 1808. UseDefaultImportParameterParser.parseDefaultValues(String, String)insteadParses referencePattern cell (which is located in the second row) and default values cell (which is located in the third row) and creates map where key is equals to reference key and value is equals to value provided in the third row. For example, for the following reference cell's value: catalog:version and default value cell: Defailt:Online the following map will be returned: {{key: catalog, value: Default}, {key: version, value: Online}}- Returns:
- Map of default values. If default values are not provided then only keys will be returned.
-
getIsoCode
-
setIsoCode
-
getReferenceFormat
-
setReferenceFormat
-
getDefaultValues
-
setDefaultValues
-
getAttributeDescriptor
-
setAttributeDescriptor
-
isRequired
-
getName
-
getQualifier
-
isLocalized
public boolean isLocalized() -
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<SelectedAttribute>
-