org.camunda.bpm.engine.rest.dto.converter
Class PeriodUnitConverter

java.lang.Object
  extended by org.camunda.bpm.engine.rest.dto.converter.JacksonAwareStringToTypeConverter<PeriodUnit>
      extended by org.camunda.bpm.engine.rest.dto.converter.PeriodUnitConverter
All Implemented Interfaces:
StringToTypeConverter<PeriodUnit>

public class PeriodUnitConverter
extends JacksonAwareStringToTypeConverter<PeriodUnit>

Author:
Roman Smirnov

Field Summary
 
Fields inherited from class org.camunda.bpm.engine.rest.dto.converter.JacksonAwareStringToTypeConverter
objectMapper
 
Constructor Summary
PeriodUnitConverter()
           
 
Method Summary
 PeriodUnit convertQueryParameterToType(String value)
           
protected
<T extends Enum<T>>
T
mapToEnum(String value, Class<T> type)
           
 
Methods inherited from class org.camunda.bpm.engine.rest.dto.converter.JacksonAwareStringToTypeConverter
mapToType, setObjectMapper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PeriodUnitConverter

public PeriodUnitConverter()
Method Detail

convertQueryParameterToType

public PeriodUnit convertQueryParameterToType(String value)
Specified by:
convertQueryParameterToType in interface StringToTypeConverter<PeriodUnit>
Specified by:
convertQueryParameterToType in class JacksonAwareStringToTypeConverter<PeriodUnit>

mapToEnum

protected <T extends Enum<T>> T mapToEnum(String value,
                                          Class<T> type)


Copyright © 2016 camunda services GmbH. All rights reserved.