org.camunda.bpm.engine.impl.juel
Class TypeConverterImpl

java.lang.Object
  extended by org.camunda.bpm.engine.impl.juel.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.camunda.bpm.engine.impl.juel.TypeConverter
DEFAULT
 
Constructor Summary
TypeConverterImpl()
           
 
Method Summary
protected  Object coerceStringToType(String value, Class<?> type)
           
protected  BigDecimal coerceToBigDecimal(Object value)
           
protected  BigInteger coerceToBigInteger(Object value)
           
protected  Boolean coerceToBoolean(Object value)
           
protected  Byte coerceToByte(Object value)
           
protected  Character coerceToCharacter(Object value)
           
protected  Double coerceToDouble(Object value)
           
protected
<T extends Enum<T>>
T
coerceToEnum(Object value, Class<T> type)
           
protected  Float coerceToFloat(Object value)
           
protected  Integer coerceToInteger(Object value)
           
protected  Long coerceToLong(Object value)
           
protected  Short coerceToShort(Object value)
           
protected  String coerceToString(Object value)
           
protected  Object coerceToType(Object value, Class<?> type)
           
<T> T
convert(Object value, Class<T> type)
          Convert the given input value to the specified target type.
 boolean equals(Object obj)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeConverterImpl

public TypeConverterImpl()
Method Detail

coerceToBoolean

protected Boolean coerceToBoolean(Object value)

coerceToCharacter

protected Character coerceToCharacter(Object value)

coerceToBigDecimal

protected BigDecimal coerceToBigDecimal(Object value)

coerceToBigInteger

protected BigInteger coerceToBigInteger(Object value)

coerceToDouble

protected Double coerceToDouble(Object value)

coerceToFloat

protected Float coerceToFloat(Object value)

coerceToLong

protected Long coerceToLong(Object value)

coerceToInteger

protected Integer coerceToInteger(Object value)

coerceToShort

protected Short coerceToShort(Object value)

coerceToByte

protected Byte coerceToByte(Object value)

coerceToString

protected String coerceToString(Object value)

coerceToEnum

protected <T extends Enum<T>> T coerceToEnum(Object value,
                                             Class<T> type)

coerceStringToType

protected Object coerceStringToType(String value,
                                    Class<?> type)

coerceToType

protected Object coerceToType(Object value,
                              Class<?> type)

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

convert

public <T> T convert(Object value,
                     Class<T> type)
          throws ELException
Description copied from interface: TypeConverter
Convert the given input value to the specified target type.

Specified by:
convert in interface TypeConverter
Parameters:
value - input value
type - target type
Returns:
conversion result
Throws:
ELException


Copyright © 2016 camunda services GmbH. All rights reserved.