Class StringBasedErpTypeConverter<T extends StringBasedErpType<T>>

Type Parameters:
T - The generic sub class type.
All Implemented Interfaces:
ErpTypeConverter<T>, TypeConverter<T,String>

@Deprecated public class StringBasedErpTypeConverter<T extends StringBasedErpType<T>> extends AbstractErpTypeConverter<T>
Deprecated.
This module will be discontinued, along with its classes and methods.
Base class for String like ERP types.
  • Constructor Details

    • StringBasedErpTypeConverter

      public StringBasedErpTypeConverter(@Nonnull Class<T> type)
      Deprecated.
  • Method Details

    • getType

      @Nonnull public Class<T> getType()
      Deprecated.
      Description copied from interface: TypeConverter
      Getter for an class object of the type to convert from/to the domain-specific counterpart.
      Returns:
      The class object of T.
    • toDomainNonNull

      @Nonnull public ConvertedObject<String> toDomainNonNull(@Nullable T object)
      Deprecated.
      Description copied from class: AbstractTypeConverter
      Actual converter implementation from an arbitrary object to its domain-specific counterpart.
      Specified by:
      toDomainNonNull in class AbstractTypeConverter<T extends StringBasedErpType<T>,String>
      Parameters:
      object - The object to transform to its domain-specific counterpart.
      Returns:
      A wrapper containing the domain-specific counterpart.
    • fromDomainNonNull

      @Nonnull public ConvertedObject<T> fromDomainNonNull(@Nullable String domainObject)
      Deprecated.
      Description copied from class: AbstractTypeConverter
      Actual converter implementation from a domain-specific object to an arbitrary type.
      Specified by:
      fromDomainNonNull in class AbstractTypeConverter<T extends StringBasedErpType<T>,String>
      Parameters:
      domainObject - The domain-specific object to transform.
      Returns:
      A wrapper containing the converted object.