Interface AttributeReference

All Superinterfaces:
WithKey

public interface AttributeReference extends WithKey
AttributeReference
Example to create an instance using the builder pattern

     AttributeReference attributeReference = AttributeReference.builder()
             .key("{key}")
             .build()
 
  • Method Details

    • getKey

      @NotNull @NotNull String getKey()

      The Attribute's name as given in its AttributeDefinition.

      Specified by:
      getKey in interface WithKey
      Returns:
      key
    • setKey

      void setKey(String key)

      The Attribute's name as given in its AttributeDefinition.

      Parameters:
      key - value to be set
    • of

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

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

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

      static AttributeReferenceBuilder builder()
      builder factory method for AttributeReference
      Returns:
      builder
    • builder

      static AttributeReferenceBuilder builder(AttributeReference template)
      create builder for AttributeReference instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withAttributeReference

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