Class DmnTypeDefinitionImpl
- java.lang.Object
-
- org.camunda.bpm.dmn.engine.impl.type.DmnTypeDefinitionImpl
-
- All Implemented Interfaces:
DmnTypeDefinition
public class DmnTypeDefinitionImpl extends java.lang.Object implements DmnTypeDefinition
-
-
Field Summary
Fields Modifier and Type Field Description protected static DmnEngineLogger
LOG
protected DmnDataTypeTransformer
transformer
protected java.lang.String
typeName
-
Constructor Summary
Constructors Constructor Description DmnTypeDefinitionImpl(java.lang.String typeName, DmnDataTypeTransformer transformer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getTypeName()
void
setTransformer(DmnDataTypeTransformer transformer)
void
setTypeName(java.lang.String typeName)
java.lang.String
toString()
TypedValue
transform(java.lang.Object value)
Transform the given value into the type specified by the type name.protected TypedValue
transformNotNullValue(java.lang.Object value)
-
-
-
Field Detail
-
LOG
protected static final DmnEngineLogger LOG
-
typeName
protected java.lang.String typeName
-
transformer
protected DmnDataTypeTransformer transformer
-
-
Constructor Detail
-
DmnTypeDefinitionImpl
public DmnTypeDefinitionImpl(java.lang.String typeName, DmnDataTypeTransformer transformer)
-
-
Method Detail
-
transform
public TypedValue transform(java.lang.Object value)
Description copied from interface:DmnTypeDefinition
Transform the given value into the type specified by the type name.- Specified by:
transform
in interfaceDmnTypeDefinition
- Parameters:
value
- to transform into the specified type- Returns:
- value of specified type
-
transformNotNullValue
protected TypedValue transformNotNullValue(java.lang.Object value)
-
getTypeName
public java.lang.String getTypeName()
- Specified by:
getTypeName
in interfaceDmnTypeDefinition
- Returns:
- the type name of this definition
-
setTypeName
public void setTypeName(java.lang.String typeName)
-
setTransformer
public void setTransformer(DmnDataTypeTransformer transformer)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-