public abstract class ProductAttributeConverterBase<T> extends Base implements ProductAttributeConverter<T>
Modifier | Constructor and Description |
---|---|
protected |
ProductAttributeConverterBase(Collection<ProductType> productTypes) |
protected |
ProductAttributeConverterBase(ProductTypeLocalRepository productTypes) |
Modifier and Type | Method and Description |
---|---|
T |
convert(Attribute attribute,
Referenceable<ProductType> productType) |
protected abstract T |
convertBoolean(Boolean booleanValue,
Attribute attribute,
ProductType productType) |
protected abstract T |
convertBooleanSet(Set<Boolean> booleanSet,
Attribute attribute,
ProductType productType) |
protected abstract T |
convertCategoryReference(Reference<Category> categoryReference,
Attribute attribute,
ProductType productType) |
protected abstract T |
convertCategoryReferenceSet(Set<Reference<Category>> v,
Attribute attribute,
ProductType productType) |
protected abstract T |
convertChannelReference(Reference<Channel> channelReference,
Attribute attribute,
ProductType productType) |
protected abstract T |
convertChannelReferenceSet(Set<Reference<Channel>> channelReferenceSet,
Attribute attribute,
ProductType productType) |
protected abstract T |
convertDate(LocalDate dateValue,
Attribute attribute,
ProductType productType) |
protected abstract T |
convertDateSet(Set<LocalDate> dateSet,
Attribute attribute,
ProductType productType) |
protected abstract T |
convertDateTime(ZonedDateTime dateTimeValue,
Attribute attribute,
ProductType productType) |
protected abstract T |
convertDateTimeSet(Set<ZonedDateTime> zonedDateTimeSet,
Attribute attribute,
ProductType productType) |
protected abstract T |
convertDouble(Double doubleValue,
Attribute attribute,
ProductType productType) |
protected abstract T |
convertDoubleSet(Set<Double> doubleSet,
Attribute attribute,
ProductType productType) |
protected abstract T |
convertEnumValue(EnumValue enumValue,
Attribute attribute,
ProductType productType) |
protected abstract T |
convertEnumValueSet(Set<EnumValue> enumValueSet,
Attribute attribute,
ProductType productType) |
protected abstract T |
convertInteger(Integer integer,
Attribute attribute,
ProductType productType) |
protected abstract T |
convertIntegerSet(Set<Integer> integerSet,
Attribute attribute,
ProductType productType) |
protected abstract T |
convertLocalizedEnumValue(LocalizedEnumValue localizedEnumValue,
Attribute attribute,
ProductType productType) |
protected abstract T |
convertLocalizedEnumValueSet(Set<LocalizedEnumValue> localizedEnumValueSet,
Attribute attribute,
ProductType productType) |
protected abstract T |
convertLocalizedString(LocalizedString localizedString,
Attribute attribute,
ProductType productType) |
protected abstract T |
convertLocalizedStringSet(Set<LocalizedString> localizedStringSet,
Attribute attribute,
ProductType productType) |
protected abstract T |
convertLong(Long longValue,
Attribute attribute,
ProductType productType) |
protected abstract T |
convertLongSet(Set<Long> longSet,
Attribute attribute,
ProductType productType) |
protected abstract T |
convertMoney(javax.money.MonetaryAmount moneyValue,
Attribute attribute,
ProductType productType) |
protected abstract T |
convertMoneySet(Set<javax.money.MonetaryAmount> monetaryAmountSet,
Attribute attribute,
ProductType productType) |
protected abstract T |
convertProductReference(Reference<Product> productReference,
Attribute attribute,
ProductType productType) |
protected abstract T |
convertProductReferenceSet(Set<Reference<Product>> referenceSet,
Attribute attribute,
ProductType productType) |
protected abstract T |
convertProductTypeReference(Reference<ProductType> productTypeReference,
Attribute attribute,
ProductType productType) |
protected abstract T |
convertProductTypeReferenceSet(Set<Reference<ProductType>> productTypeReferenceSet,
Attribute attribute,
ProductType productType) |
protected abstract T |
convertString(String stringValue,
Attribute attribute,
ProductType productType) |
protected abstract T |
convertStringSet(Set<String> stringSet,
Attribute attribute,
ProductType productType) |
protected abstract T |
convertTime(LocalTime time,
Attribute attribute,
ProductType productType) |
protected abstract T |
convertTimeSet(Set<LocalTime> timeSet,
Attribute attribute,
ProductType productType) |
protected T |
convertWithProductType(Attribute attribute,
ProductType productType) |
protected Optional<ProductType> |
findProductType(Referenceable<ProductType> productType) |
protected Collection<String> |
integerAttributes() |
protected Collection<String> |
integerSetAttributes() |
protected boolean |
isInteger(Attribute attribute,
ProductType productType) |
protected boolean |
isIntegerSet(Attribute attribute,
ProductType productType) |
protected boolean |
isLong(Attribute attribute,
ProductType productType) |
protected boolean |
isLongSet(Attribute attribute,
ProductType productType) |
protected Collection<String> |
longAttributes() |
protected Collection<String> |
longSetAttributes() |
protected ProductAttributeConverterBase(ProductTypeLocalRepository productTypes)
protected ProductAttributeConverterBase(Collection<ProductType> productTypes)
@Nullable public T convert(Attribute attribute, Referenceable<ProductType> productType)
convert
in interface ProductAttributeConverter<T>
protected Optional<ProductType> findProductType(Referenceable<ProductType> productType)
protected T convertWithProductType(Attribute attribute, ProductType productType)
@Nullable protected abstract T convertStringSet(Set<String> stringSet, Attribute attribute, ProductType productType)
@Nullable protected abstract T convertProductTypeReferenceSet(Set<Reference<ProductType>> productTypeReferenceSet, Attribute attribute, ProductType productType)
@Nullable protected abstract T convertProductTypeReference(Reference<ProductType> productTypeReference, Attribute attribute, ProductType productType)
@Nullable protected abstract T convertProductReferenceSet(Set<Reference<Product>> referenceSet, Attribute attribute, ProductType productType)
@Nullable protected abstract T convertProductReference(Reference<Product> productReference, Attribute attribute, ProductType productType)
@Nullable protected abstract T convertMoneySet(Set<javax.money.MonetaryAmount> monetaryAmountSet, Attribute attribute, ProductType productType)
@Nullable protected abstract T convertLongSet(Set<Long> longSet, Attribute attribute, ProductType productType)
@Nullable protected abstract T convertLong(Long longValue, Attribute attribute, ProductType productType)
@Nullable protected abstract T convertTimeSet(Set<LocalTime> timeSet, Attribute attribute, ProductType productType)
@Nullable protected abstract T convertTime(LocalTime time, Attribute attribute, ProductType productType)
@Nullable protected abstract T convertLocalizedStringSet(Set<LocalizedString> localizedStringSet, Attribute attribute, ProductType productType)
@Nullable protected abstract T convertLocalizedEnumValueSet(Set<LocalizedEnumValue> localizedEnumValueSet, Attribute attribute, ProductType productType)
protected Collection<String> integerAttributes()
protected Collection<String> longAttributes()
protected Collection<String> integerSetAttributes()
protected Collection<String> longSetAttributes()
@Nullable protected abstract T convertIntegerSet(Set<Integer> integerSet, Attribute attribute, ProductType productType)
@Nullable protected abstract T convertInteger(Integer integer, Attribute attribute, ProductType productType)
@Nullable protected abstract T convertEnumValueSet(Set<EnumValue> enumValueSet, Attribute attribute, ProductType productType)
@Nullable protected abstract T convertDoubleSet(Set<Double> doubleSet, Attribute attribute, ProductType productType)
protected boolean isIntegerSet(Attribute attribute, ProductType productType)
protected boolean isInteger(Attribute attribute, ProductType productType)
protected boolean isLongSet(Attribute attribute, ProductType productType)
protected boolean isLong(Attribute attribute, ProductType productType)
@Nullable protected abstract T convertDouble(Double doubleValue, Attribute attribute, ProductType productType)
@Nullable protected abstract T convertDateTimeSet(Set<ZonedDateTime> zonedDateTimeSet, Attribute attribute, ProductType productType)
@Nullable protected abstract T convertDateSet(Set<LocalDate> dateSet, Attribute attribute, ProductType productType)
@Nullable protected abstract T convertChannelReferenceSet(Set<Reference<Channel>> channelReferenceSet, Attribute attribute, ProductType productType)
@Nullable protected abstract T convertChannelReference(Reference<Channel> channelReference, Attribute attribute, ProductType productType)
@Nullable protected abstract T convertCategoryReferenceSet(Set<Reference<Category>> v, Attribute attribute, ProductType productType)
@Nullable protected abstract T convertCategoryReference(Reference<Category> categoryReference, Attribute attribute, ProductType productType)
@Nullable protected abstract T convertBooleanSet(Set<Boolean> booleanSet, Attribute attribute, ProductType productType)
@Nullable protected abstract T convertString(String stringValue, Attribute attribute, ProductType productType)
@Nullable protected abstract T convertMoney(javax.money.MonetaryAmount moneyValue, Attribute attribute, ProductType productType)
@Nullable protected abstract T convertLocalizedString(LocalizedString localizedString, Attribute attribute, ProductType productType)
@Nullable protected abstract T convertLocalizedEnumValue(LocalizedEnumValue localizedEnumValue, Attribute attribute, ProductType productType)
@Nullable protected abstract T convertEnumValue(EnumValue enumValue, Attribute attribute, ProductType productType)
@Nullable protected abstract T convertDateTime(ZonedDateTime dateTimeValue, Attribute attribute, ProductType productType)
@Nullable protected abstract T convertDate(LocalDate dateValue, Attribute attribute, ProductType productType)
@Nullable protected abstract T convertBoolean(Boolean booleanValue, Attribute attribute, ProductType productType)