Class SelectedAttribute

java.lang.Object
com.hybris.backoffice.excel.data.SelectedAttribute
All Implemented Interfaces:
Comparable<SelectedAttribute>

public class SelectedAttribute extends Object implements 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 Details

  • Constructor Details

  • Method Details

    • findDefaultValues

      @Deprecated(since="1808", forRemoval=true) public Map<String,String> findDefaultValues()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parses 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

      public String getIsoCode()
    • setIsoCode

      public void setIsoCode(String isoCode)
    • getReferenceFormat

      public String getReferenceFormat()
    • setReferenceFormat

      public void setReferenceFormat(String referenceFormat)
    • getDefaultValues

      public String getDefaultValues()
    • setDefaultValues

      public void setDefaultValues(String defaultValues)
    • getAttributeDescriptor

      public AttributeDescriptorModel getAttributeDescriptor()
    • setAttributeDescriptor

      public void setAttributeDescriptor(AttributeDescriptorModel attributeDescriptor)
    • isRequired

      public boolean isRequired(String currentLanguageIsoCode)
    • getName

      public String getName()
    • getQualifier

      public String getQualifier()
    • isLocalized

      public boolean isLocalized()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(SelectedAttribute o)
      Specified by:
      compareTo in interface Comparable<SelectedAttribute>