Package com.appiancorp.suiteapi.common
Class TypeConverter
java.lang.Object
com.appiancorp.suiteapi.common.TypeConverter
- All Implemented Interfaces:
com.appiancorp.kougar.mapper.parameters.TypeParameterConversion
,com.appiancorp.kougar.mapper.returns.TypeReturnConversion
,com.appiancorp.kougar.mapper.TypeConverter
public class TypeConverter
extends Object
implements com.appiancorp.kougar.mapper.TypeConverter, com.appiancorp.kougar.mapper.parameters.TypeParameterConversion, com.appiancorp.kougar.mapper.returns.TypeReturnConversion
Base class for conversions between frontend and backend data representation.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvertParameter
(com.appiancorp.kougar.mapper.parameters.ParameterConversionMap m, Long typeId, Object value) convertParameter
(com.appiancorp.kougar.mapper.parameters.ParameterConversionMap m, Long typeId, Object value, com.appiancorp.suiteapi.common.TypeConverterState state) convertReturn
(com.appiancorp.kougar.mapper.returns.ReturnConversionMap m, Long typeId, Object value) protected static TypedValue
protected static TypedValue
frontEndTypedValue
(Long typeId, Object value) protected Object
getParameter
(com.appiancorp.kougar.mapper.parameters.ParameterConversionMap m, Long typeId, Object value) protected Object
protected com.appiancorp.kougar.mapper.parameters.TypeParameterConversion
getTypeParameterConversion
(com.appiancorp.kougar.mapper.parameters.ParameterConversionMap m, Long typeId) protected com.appiancorp.kougar.mapper.returns.TypeReturnConversion
getTypeReturnConversion
(com.appiancorp.kougar.mapper.returns.ReturnConversionMap m, Long typeId)
-
Field Details
-
aTypeService
-
-
Constructor Details
-
TypeConverter
public TypeConverter()
-
-
Method Details
-
convertParameter
public Object convertParameter(com.appiancorp.kougar.mapper.parameters.ParameterConversionMap m, Long typeId, Object value, com.appiancorp.suiteapi.common.TypeConverterState state) throws InvalidTypeException - Throws:
InvalidTypeException
-
convertParameter
public Object convertParameter(com.appiancorp.kougar.mapper.parameters.ParameterConversionMap m, Long typeId, Object value) throws InvalidTypeException - Specified by:
convertParameter
in interfacecom.appiancorp.kougar.mapper.TypeConverter
- Specified by:
convertParameter
in interfacecom.appiancorp.kougar.mapper.parameters.TypeParameterConversion
- Throws:
InvalidTypeException
-
convertReturn
public Object convertReturn(com.appiancorp.kougar.mapper.returns.ReturnConversionMap m, Long typeId, Object value) throws InvalidTypeException - Specified by:
convertReturn
in interfacecom.appiancorp.kougar.mapper.TypeConverter
- Specified by:
convertReturn
in interfacecom.appiancorp.kougar.mapper.returns.TypeReturnConversion
- Throws:
InvalidTypeException
-
getTypeParameterConversion
protected com.appiancorp.kougar.mapper.parameters.TypeParameterConversion getTypeParameterConversion(com.appiancorp.kougar.mapper.parameters.ParameterConversionMap m, Long typeId) throws InvalidTypeException - Throws:
InvalidTypeException
-
getParameter
protected Object getParameter(com.appiancorp.kougar.mapper.parameters.ParameterConversionMap m, Long typeId, Object value) throws InvalidTypeException - Throws:
InvalidTypeException
-
getTypeReturnConversion
protected com.appiancorp.kougar.mapper.returns.TypeReturnConversion getTypeReturnConversion(com.appiancorp.kougar.mapper.returns.ReturnConversionMap m, Long typeId) throws InvalidTypeException - Throws:
InvalidTypeException
-
getReturn
protected Object getReturn(com.appiancorp.kougar.mapper.returns.ReturnConversionMap m, Long typeId, Object value) throws InvalidTypeException - Throws:
InvalidTypeException
-
frontEndTypedValue
-
frontEndTypedValue
-