Interface TypeConverter

  • All Superinterfaces:
    java.io.Serializable
    All Known Implementing Classes:
    Bindings, TypeConverterImpl

    public interface TypeConverter
    extends java.io.Serializable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static TypeConverter DEFAULT
      Default conversions as from JSR245.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <T> T convert​(java.lang.Object value, java.lang.Class<T> type)
      Convert the given input value to the specified target type.
    • Field Detail

      • DEFAULT

        static final TypeConverter DEFAULT
        Default conversions as from JSR245.
    • Method Detail

      • convert

        <T> T convert​(java.lang.Object value,
                      java.lang.Class<T> type)
               throws ELException
        Convert the given input value to the specified target type.
        Parameters:
        value - input value
        type - target type
        Returns:
        conversion result
        Throws:
        ELException