Class TextLineItemCustomTypeAdapter

  • All Implemented Interfaces:
    Custom

    public final class TextLineItemCustomTypeAdapter
    extends java.lang.Object
    implements Custom
    Adapt TextLineItem with Custom interface to be used on CustomUpdateActionUtils
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.commercetools.api.models.type.CustomFields getCustom()
      Get custom fields of the TextLineItem
      java.lang.String getId()
      Get Id of the TextLineItem
      java.lang.String getTypeId()
      Get typeId of the TextLineItem see: https://docs.commercetools.com/api/types#referencetype
      static TextLineItemCustomTypeAdapter of​(com.commercetools.api.models.shopping_list.TextLineItem textLineItem)
      Build an adapter to be used for preparing custom type actions of with the given TextLineItem
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getId

        public java.lang.String getId()
        Get Id of the TextLineItem
        Specified by:
        getId in interface Custom
        Returns:
        the TextLineItem.getId()
      • getTypeId

        public java.lang.String getTypeId()
        Get typeId of the TextLineItem see: https://docs.commercetools.com/api/types#referencetype
        Specified by:
        getTypeId in interface Custom
        Returns:
        the typeId "shopping-list"
      • getCustom

        @Nullable
        public com.commercetools.api.models.type.CustomFields getCustom()
        Get custom fields of the TextLineItem
        Specified by:
        getCustom in interface Custom
        Returns:
        the CustomFields
      • of

        public static TextLineItemCustomTypeAdapter of​(com.commercetools.api.models.shopping_list.TextLineItem textLineItem)
        Build an adapter to be used for preparing custom type actions of with the given TextLineItem
        Parameters:
        textLineItem - the TextLineItem
        Returns:
        the TextLineItemCustomTypeAdapter