Interface AttributeNestedType

All Superinterfaces:
AttributeType

public interface AttributeNestedType extends AttributeType

Attribute type for nesting Attributes based on some existing ProductType. It does not support isSearchable and is not supported in queries. The only supported AttributeConstraint is None.


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 ProductTypeReference getTypeReference()

      Attributes that can be stored as nested Attributes of the current Attribute.

      Returns:
      typeReference
    • setTypeReference

      void setTypeReference(ProductTypeReference typeReference)

      Attributes that can be stored as nested Attributes of the current Attribute.

      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