Interface LocalizableEnumAttribute

All Superinterfaces:
Attribute

public interface LocalizableEnumAttribute extends Attribute

This type represents an attribute whose value is a localized enum. The attribute value refers to the key of the enum value.


Example to create an instance using the builder pattern

     LocalizableEnumAttribute localizableEnumAttribute = LocalizableEnumAttribute.builder()
             .value("{value}")
             .build()
 
  • Field Details

  • Method Details

    • getValue

      @NotNull @NotNull String getValue()
      Returns:
      value
    • setValue

      void setValue(String value)
      set value
      Parameters:
      value - value to be set
    • of

      factory method
      Returns:
      instance of LocalizableEnumAttribute
    • of

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

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

      builder factory method for LocalizableEnumAttribute
      Returns:
      builder
    • builder

      create builder for LocalizableEnumAttribute instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withLocalizableEnumAttribute

      default <T> T withLocalizableEnumAttribute(Function<LocalizableEnumAttribute,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<LocalizableEnumAttribute> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference