Class CategoryToDataContentConverter

java.lang.Object
de.hybris.platform.cmsfacades.rendering.attributeconverters.CategoryToDataContentConverter
All Implemented Interfaces:
Converter<CategoryModel,String>

public class CategoryToDataContentConverter extends Object implements Converter<CategoryModel,String>
Rendering Attribute Converter for CategoryModel. Converts the category into its category code (string).
  • Constructor Details

    • CategoryToDataContentConverter

      public CategoryToDataContentConverter()
  • Method Details

    • convert

      public String convert(CategoryModel source)
      Description copied from interface: Converter
      Uses the source S object and produces an new instance of T.
      Specified by:
      convert in interface Converter<CategoryModel,String>
      Parameters:
      source - the input to be converted.
      Returns:
      an instance of T, converted from the input source.