Class StringToObjectConverter


  • public class StringToObjectConverter
    extends java.lang.Object
    Utility class which can convert string into objects.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean canBeBuiltFromSimpleString​(java.lang.Class<?> parameterClass)  
      static java.lang.Object convertArg​(ContextAware ca, java.lang.String val, java.lang.Class<?> type)
      Convert val a String parameter to an object of a given type.
      static java.lang.reflect.Method getValueOfMethod​(java.lang.Class<?> type)  
      • Methods inherited from class java.lang.Object

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

      • StringToObjectConverter

        public StringToObjectConverter()
    • Method Detail

      • canBeBuiltFromSimpleString

        public static boolean canBeBuiltFromSimpleString​(java.lang.Class<?> parameterClass)
      • convertArg

        public static java.lang.Object convertArg​(ContextAware ca,
                                                  java.lang.String val,
                                                  java.lang.Class<?> type)
        Convert val a String parameter to an object of a given type.
      • getValueOfMethod

        public static java.lang.reflect.Method getValueOfMethod​(java.lang.Class<?> type)