Class DefaultDataToAttributeContentConverter

  • All Implemented Interfaces:
    Converter<java.lang.Object,​java.lang.Object>

    public class DefaultDataToAttributeContentConverter
    extends java.lang.Object
    implements Converter<java.lang.Object,​java.lang.Object>
    Default Converter to parse a String to primitive types such as String, Boolean, Integer, Float, Long, Double
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object convert​(java.lang.Object source)
      Uses the source S object and produces an new instance of T.
      protected java.lang.Class<?> getPrimitiveType()  
      void setPrimitiveType​(java.lang.Class<?> primitiveType)  
      • Methods inherited from class java.lang.Object

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

      • DefaultDataToAttributeContentConverter

        public DefaultDataToAttributeContentConverter()
    • Method Detail

      • convert

        public java.lang.Object convert​(java.lang.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<java.lang.Object,​java.lang.Object>
        Parameters:
        source - the input to be converted.
        Returns:
        an instance of T, converted from the input source.
      • getPrimitiveType

        protected java.lang.Class<?> getPrimitiveType()
      • setPrimitiveType

        public void setPrimitiveType​(java.lang.Class<?> primitiveType)