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 Details

    • aTypeService

      protected final TypeService 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 interface com.appiancorp.kougar.mapper.TypeConverter
      Specified by:
      convertParameter in interface com.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 interface com.appiancorp.kougar.mapper.TypeConverter
      Specified by:
      convertReturn in interface com.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

      protected static TypedValue frontEndTypedValue(Long typeId, Object value)
    • frontEndTypedValue

      protected static TypedValue frontEndTypedValue(TypedValue tv)