Interface ReferenceSetAttribute

All Superinterfaces:
Attribute

public interface ReferenceSetAttribute extends Attribute

This type represents an attribute whose value is a set of references.


Example to create an instance using the builder pattern

     ReferenceSetAttribute referenceSetAttribute = ReferenceSetAttribute.builder()
             .plusValue(valueBuilder -> valueBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getValue

      @NotNull @Valid @NotNull @Valid List<KeyReference> getValue()
      Returns:
      value
    • setValue

      void setValue(KeyReference... value)
      set value
      Parameters:
      value - values to be set
    • setValue

      void setValue(List<KeyReference> value)
      set value
      Parameters:
      value - values to be set
    • of

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

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

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

      static ReferenceSetAttributeBuilder builder()
      builder factory method for ReferenceSetAttribute
      Returns:
      builder
    • builder

      create builder for ReferenceSetAttribute instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withReferenceSetAttribute

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