Package org.camunda.bpm.engine.impl.juel
Class TypeConverterImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.juel.TypeConverterImpl
-
- All Implemented Interfaces:
java.io.Serializable
,TypeConverter
public class TypeConverterImpl extends java.lang.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.camunda.bpm.engine.impl.juel.TypeConverter
DEFAULT
-
-
Constructor Summary
Constructors Constructor Description TypeConverterImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Object
coerceStringToType(java.lang.String value, java.lang.Class<?> type)
protected java.math.BigDecimal
coerceToBigDecimal(java.lang.Object value)
protected java.math.BigInteger
coerceToBigInteger(java.lang.Object value)
protected java.lang.Boolean
coerceToBoolean(java.lang.Object value)
protected java.lang.Byte
coerceToByte(java.lang.Object value)
protected java.lang.Character
coerceToCharacter(java.lang.Object value)
protected java.lang.Double
coerceToDouble(java.lang.Object value)
protected <T extends java.lang.Enum<T>>
TcoerceToEnum(java.lang.Object value, java.lang.Class<T> type)
protected java.lang.Float
coerceToFloat(java.lang.Object value)
protected java.lang.Integer
coerceToInteger(java.lang.Object value)
protected java.lang.Long
coerceToLong(java.lang.Object value)
protected java.lang.Short
coerceToShort(java.lang.Object value)
protected java.lang.String
coerceToString(java.lang.Object value)
protected java.lang.Object
coerceToType(java.lang.Object value, java.lang.Class<?> type)
<T> T
convert(java.lang.Object value, java.lang.Class<T> type)
Convert the given input value to the specified target type.boolean
equals(java.lang.Object obj)
int
hashCode()
-
-
-
Method Detail
-
coerceToBoolean
protected java.lang.Boolean coerceToBoolean(java.lang.Object value)
-
coerceToCharacter
protected java.lang.Character coerceToCharacter(java.lang.Object value)
-
coerceToBigDecimal
protected java.math.BigDecimal coerceToBigDecimal(java.lang.Object value)
-
coerceToBigInteger
protected java.math.BigInteger coerceToBigInteger(java.lang.Object value)
-
coerceToDouble
protected java.lang.Double coerceToDouble(java.lang.Object value)
-
coerceToFloat
protected java.lang.Float coerceToFloat(java.lang.Object value)
-
coerceToLong
protected java.lang.Long coerceToLong(java.lang.Object value)
-
coerceToInteger
protected java.lang.Integer coerceToInteger(java.lang.Object value)
-
coerceToShort
protected java.lang.Short coerceToShort(java.lang.Object value)
-
coerceToByte
protected java.lang.Byte coerceToByte(java.lang.Object value)
-
coerceToString
protected java.lang.String coerceToString(java.lang.Object value)
-
coerceToEnum
protected <T extends java.lang.Enum<T>> T coerceToEnum(java.lang.Object value, java.lang.Class<T> type)
-
coerceStringToType
protected java.lang.Object coerceStringToType(java.lang.String value, java.lang.Class<?> type)
-
coerceToType
protected java.lang.Object coerceToType(java.lang.Object value, java.lang.Class<?> type)
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
convert
public <T> T convert(java.lang.Object value, java.lang.Class<T> type) throws ELException
Description copied from interface:TypeConverter
Convert the given input value to the specified target type.- Specified by:
convert
in interfaceTypeConverter
- Parameters:
value
- input valuetype
- target type- Returns:
- conversion result
- Throws:
ELException
-
-