Interface AttributeNestedType

All Superinterfaces:
AttributeType

public interface AttributeNestedType extends AttributeType
AttributeNestedType
Example to create an instance using the builder pattern

     AttributeNestedType attributeNestedType = AttributeNestedType.builder()
             .typeReference(typeReferenceBuilder -> typeReferenceBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getTypeReference

      @NotNull @Valid @NotNull @Valid ProductTypeKeyReference getTypeReference()

      References a product type by key.

      Returns:
      typeReference
    • setTypeReference

      void setTypeReference(ProductTypeKeyReference typeReference)

      References a product type by key.

      Parameters:
      typeReference - value to be set
    • of

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

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

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

      static AttributeNestedTypeBuilder builder()
      builder factory method for AttributeNestedType
      Returns:
      builder
    • builder

      create builder for AttributeNestedType instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withAttributeNestedType

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