Class IntegerDataTypeTransformer
- java.lang.Object
-
- org.camunda.bpm.dmn.engine.impl.type.IntegerDataTypeTransformer
-
- All Implemented Interfaces:
DmnDataTypeTransformer
public class IntegerDataTypeTransformer extends java.lang.Object implements DmnDataTypeTransformer
- Author:
- Philipp Ossler
-
-
Constructor Summary
Constructors Constructor Description IntegerDataTypeTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
isInteger(java.lang.Number value)
TypedValue
transform(java.lang.Object value)
Transform the given value.protected int
transformNumber(java.lang.Number value)
protected int
transformString(java.lang.String value)
-
-
-
Method Detail
-
transform
public TypedValue transform(java.lang.Object value) throws java.lang.IllegalArgumentException
Description copied from interface:DmnDataTypeTransformer
Transform the given value.- Specified by:
transform
in interfaceDmnDataTypeTransformer
- Parameters:
value
- of any type- Returns:
- value of the specific type
- Throws:
java.lang.IllegalArgumentException
- if the value can not be transformed
-
transformNumber
protected int transformNumber(java.lang.Number value)
-
isInteger
protected boolean isInteger(java.lang.Number value)
-
transformString
protected int transformString(java.lang.String value)
-
-