Class DefaultDataToAttributeContentConverter

java.lang.Object
de.hybris.platform.cmsfacades.cmsitems.attributeconverters.DefaultDataToAttributeContentConverter
All Implemented Interfaces:
Converter<Object,Object>

public class DefaultDataToAttributeContentConverter extends Object implements Converter<Object,Object>
Default Converter to parse a String to primitive types such as String, Boolean, Integer, Float, Long, Double
  • Constructor Details

    • DefaultDataToAttributeContentConverter

      public DefaultDataToAttributeContentConverter()
  • Method Details

    • convert

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

      protected Class<?> getPrimitiveType()
    • setPrimitiveType

      public void setPrimitiveType(Class<?> primitiveType)