Package org.pentaho.di.core.injection
Class InjectionTypeConverter
- java.lang.Object
-
- org.pentaho.di.core.injection.InjectionTypeConverter
-
- Direct Known Subclasses:
DefaultInjectionTypeConverter
public class InjectionTypeConverter extends Object
Base class converter for metadata injection. Developer can extend it for own converter implementation.- Author:
- Alexander Buloichik
-
-
Constructor Summary
Constructors Constructor Description InjectionTypeConverter()
-
Method Summary
-
-
-
Method Detail
-
string2string
public String string2string(String v) throws KettleValueException
- Throws:
KettleValueException
-
string2intPrimitive
public int string2intPrimitive(String v) throws KettleValueException
- Throws:
KettleValueException
-
string2integer
public Integer string2integer(String v) throws KettleValueException
- Throws:
KettleValueException
-
string2longPrimitive
public long string2longPrimitive(String v) throws KettleValueException
- Throws:
KettleValueException
-
string2long
public Long string2long(String v) throws KettleValueException
- Throws:
KettleValueException
-
string2booleanPrimitive
public boolean string2booleanPrimitive(String v) throws KettleValueException
- Throws:
KettleValueException
-
string2boolean
public Boolean string2boolean(String v) throws KettleValueException
- Throws:
KettleValueException
-
string2enum
public Enum<?> string2enum(Class<?> enumClass, String v) throws KettleValueException
- Throws:
KettleValueException
-
boolean2string
public String boolean2string(Boolean v) throws KettleValueException
- Throws:
KettleValueException
-
boolean2intPrimitive
public int boolean2intPrimitive(Boolean v) throws KettleValueException
- Throws:
KettleValueException
-
boolean2integer
public Integer boolean2integer(Boolean v) throws KettleValueException
- Throws:
KettleValueException
-
boolean2longPrimitive
public long boolean2longPrimitive(Boolean v) throws KettleValueException
- Throws:
KettleValueException
-
boolean2long
public Long boolean2long(Boolean v) throws KettleValueException
- Throws:
KettleValueException
-
boolean2booleanPrimitive
public boolean boolean2booleanPrimitive(Boolean v) throws KettleValueException
- Throws:
KettleValueException
-
boolean2boolean
public Boolean boolean2boolean(Boolean v) throws KettleValueException
- Throws:
KettleValueException
-
boolean2enum
public Enum<?> boolean2enum(Class<?> enumClass, Boolean v) throws KettleValueException
- Throws:
KettleValueException
-
integer2string
public String integer2string(Long v) throws KettleValueException
- Throws:
KettleValueException
-
integer2intPrimitive
public int integer2intPrimitive(Long v) throws KettleValueException
- Throws:
KettleValueException
-
integer2integer
public Integer integer2integer(Long v) throws KettleValueException
- Throws:
KettleValueException
-
integer2longPrimitive
public long integer2longPrimitive(Long v) throws KettleValueException
- Throws:
KettleValueException
-
integer2long
public Long integer2long(Long v) throws KettleValueException
- Throws:
KettleValueException
-
integer2booleanPrimitive
public boolean integer2booleanPrimitive(Long v) throws KettleValueException
- Throws:
KettleValueException
-
integer2boolean
public Boolean integer2boolean(Long v) throws KettleValueException
- Throws:
KettleValueException
-
integer2enum
public Enum<?> integer2enum(Class<?> enumClass, Long v) throws KettleValueException
- Throws:
KettleValueException
-
number2string
public String number2string(Double v) throws KettleValueException
- Throws:
KettleValueException
-
number2intPrimitive
public int number2intPrimitive(Double v) throws KettleValueException
- Throws:
KettleValueException
-
number2integer
public Integer number2integer(Double v) throws KettleValueException
- Throws:
KettleValueException
-
number2longPrimitive
public long number2longPrimitive(Double v) throws KettleValueException
- Throws:
KettleValueException
-
number2long
public Long number2long(Double v) throws KettleValueException
- Throws:
KettleValueException
-
number2booleanPrimitive
public boolean number2booleanPrimitive(Double v) throws KettleValueException
- Throws:
KettleValueException
-
number2boolean
public Boolean number2boolean(Double v) throws KettleValueException
- Throws:
KettleValueException
-
number2enum
public Enum<?> number2enum(Class<?> enumClass, Double v) throws KettleValueException
- Throws:
KettleValueException
-
-