Interface LocalizableTextAttribute

All Superinterfaces:
Attribute

public interface LocalizableTextAttribute extends Attribute

This type represents an attribute whose value is a localized text.


Example to create an instance using the builder pattern

     LocalizableTextAttribute localizableTextAttribute = LocalizableTextAttribute.builder()
             .value(valueBuilder -> valueBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getValue

      @NotNull @Valid @NotNull @Valid LocalizedString getValue()

      A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.

      {
          "de": "Hundefutter",
          "en": "dog food"
        }
        
      Returns:
      value
    • setValue

      void setValue(LocalizedString value)

      A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.

      {
          "de": "Hundefutter",
          "en": "dog food"
        }
        
      Parameters:
      value - value to be set
    • of

      factory method
      Returns:
      instance of LocalizableTextAttribute
    • of

      factory method to create a shallow copy LocalizableTextAttribute
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of LocalizableTextAttribute
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      builder factory method for LocalizableTextAttribute
      Returns:
      builder
    • builder

      create builder for LocalizableTextAttribute instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withLocalizableTextAttribute

      default <T> T withLocalizableTextAttribute(Function<LocalizableTextAttribute,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<LocalizableTextAttribute> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference