Interface TextAttribute

All Superinterfaces:
Attribute

public interface TextAttribute extends Attribute

This type represents an attribute whose value is a string.


Example to create an instance using the builder pattern

     TextAttribute textAttribute = TextAttribute.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

      static TextAttribute of()
      factory method
      Returns:
      instance of TextAttribute
    • of

      static TextAttribute of(TextAttribute template)
      factory method to create a shallow copy TextAttribute
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      @Nullable static TextAttribute deepCopy(@Nullable TextAttribute template)
      factory method to create a deep copy of TextAttribute
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static TextAttributeBuilder builder()
      builder factory method for TextAttribute
      Returns:
      builder
    • builder

      static TextAttributeBuilder builder(TextAttribute template)
      create builder for TextAttribute instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withTextAttribute

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