Interface AttributeGroupDraft

All Superinterfaces:
Draft<AttributeGroupDraft>, WithKey

public interface AttributeGroupDraft extends WithKey, Draft<AttributeGroupDraft>
AttributeGroupDraft
Example to create an instance using the builder pattern

     AttributeGroupDraft attributeGroupDraft = AttributeGroupDraft.builder()
             .name(nameBuilder -> nameBuilder)
             .plusAttributes(attributesBuilder -> attributesBuilder)
             .build()
 
  • Method Details

    • getName

      @NotNull @Valid @NotNull @Valid LocalizedString getName()

      Name of the AttributeGroup.

      Returns:
      name
    • getDescription

      @Valid @Valid LocalizedString getDescription()

      Description of the AttributeGroup.

      Returns:
      description
    • getAttributes

      @NotNull @Valid @NotNull @Valid List<AttributeReference> getAttributes()

      Attributes with unique values.

      Returns:
      attributes
    • getKey

      String getKey()

      User-defined unique identifier for the AttributeGroup.

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

      void setName(LocalizedString name)

      Name of the AttributeGroup.

      Parameters:
      name - value to be set
    • setDescription

      void setDescription(LocalizedString description)

      Description of the AttributeGroup.

      Parameters:
      description - value to be set
    • setAttributes

      void setAttributes(AttributeReference... attributes)

      Attributes with unique values.

      Parameters:
      attributes - values to be set
    • setAttributes

      void setAttributes(List<AttributeReference> attributes)

      Attributes with unique values.

      Parameters:
      attributes - values to be set
    • setKey

      void setKey(String key)

      User-defined unique identifier for the AttributeGroup.

      Parameters:
      key - value to be set
    • of

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

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

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

      static AttributeGroupDraftBuilder builder()
      builder factory method for AttributeGroupDraft
      Returns:
      builder
    • builder

      create builder for AttributeGroupDraft instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withAttributeGroupDraft

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