Class ConverterRegistry


  • public final class ConverterRegistry
    extends Object
    • Method Detail

      • toAttributeValue

        public static String toAttributeValue​(Object o)
                                       throws BeanException
        Converts an object to an attribute value.
        Parameters:
        o - the object.
        Returns:
        the attribute value.
        Throws:
        BeanException - if there was an error during the conversion.
      • toPropertyValue

        public static Object toPropertyValue​(String s,
                                             Class c)
                                      throws BeanException
        Converts a string to a property value.
        Parameters:
        s - the string.
        c - the target class.
        Returns:
        the object converted from the given string into a object of the target class.
        Throws:
        BeanException - if there was an error during the conversion.