Class SelectedAttribute

  • All Implemented Interfaces:
    java.lang.Comparable<SelectedAttribute>

    public class SelectedAttribute
    extends java.lang.Object
    implements java.lang.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.
    • Constructor Detail

      • SelectedAttribute

        public SelectedAttribute()
      • SelectedAttribute

        public SelectedAttribute​(java.lang.String isoCode,
                                 AttributeDescriptorModel attributeDescriptor)
      • SelectedAttribute

        public SelectedAttribute​(java.lang.String isoCode,
                                 java.lang.String referenceFormat,
                                 java.lang.String defaultValues,
                                 AttributeDescriptorModel attributeDescriptor)
    • Method Detail

      • findDefaultValues

        @Deprecated
        public java.util.Map<java.lang.String,​java.lang.String> findDefaultValues()
        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 java.lang.String getIsoCode()
      • setIsoCode

        public void setIsoCode​(java.lang.String isoCode)
      • getReferenceFormat

        public java.lang.String getReferenceFormat()
      • setReferenceFormat

        public void setReferenceFormat​(java.lang.String referenceFormat)
      • getDefaultValues

        public java.lang.String getDefaultValues()
      • setDefaultValues

        public void setDefaultValues​(java.lang.String defaultValues)
      • isRequired

        public boolean isRequired​(java.lang.String currentLanguageIsoCode)
      • getName

        public java.lang.String getName()
      • getQualifier

        public java.lang.String getQualifier()
      • isLocalized

        public boolean isLocalized()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object