Class TypeConverterImpl
- java.lang.Object
-
- org.flowable.common.engine.impl.de.odysseus.el.misc.TypeConverterImpl
-
- All Implemented Interfaces:
Serializable,TypeConverter
public class TypeConverterImpl extends Object implements TypeConverter
Type Conversions as described in EL 2.1 specification (section 1.17).- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.flowable.common.engine.impl.de.odysseus.el.misc.TypeConverter
DEFAULT
-
-
Constructor Summary
Constructors Constructor Description TypeConverterImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ObjectcoerceStringToType(String value, Class<?> type)protected BigDecimalcoerceToBigDecimal(Object value)protected BigIntegercoerceToBigInteger(Object value)protected BooleancoerceToBoolean(Object value)protected BytecoerceToByte(Object value)protected CharactercoerceToCharacter(Object value)protected DoublecoerceToDouble(Object value)protected <T extends Enum<T>>
TcoerceToEnum(Object value, Class<T> type)protected FloatcoerceToFloat(Object value)protected IntegercoerceToInteger(Object value)protected LongcoerceToLong(Object value)protected ShortcoerceToShort(Object value)protected StringcoerceToString(Object value)protected ObjectcoerceToType(Object value, Class<?> type)<T> Tconvert(Object value, Class<T> type)Convert the given input value to the specified target type.booleanequals(Object obj)inthashCode()
-
-
-
Method Detail
-
coerceToBigDecimal
protected BigDecimal coerceToBigDecimal(Object value)
-
coerceToBigInteger
protected BigInteger coerceToBigInteger(Object value)
-
convert
public <T> T convert(Object value, Class<T> type) throws ELException
Description copied from interface:TypeConverterConvert the given input value to the specified target type.- Specified by:
convertin interfaceTypeConverter- Parameters:
value- input valuetype- target type- Returns:
- conversion result
- Throws:
ELException
-
-