Interface IPlatformSerializerCustomization<T extends Value>

Type Parameters:
T - type to define customization for, subclass of Value
All Known Implementing Classes:
ParametrizedValueListSerializerCustomization, ValueListSerializerCustomization

public interface IPlatformSerializerCustomization<T extends Value>
Customization for PlatformSerializerUtil serialization and deserialization. Allows to provide custom serialization and deserialization for some non-primitive Value, based on its class id in terms of 1C:Enterprise.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the Value subclass to define deserialization for.
    boolean
    matches(UUID classId)
    Whether need to use this customization on the given class id of the value in terms of 1C:Enterprise.
    readValue(IListInStream inStream, UUID classId)
    Reads Value from list input stream.
    void
    writeValue(IListOutStream outStream, T value)
    Writes Value to list output stream.
  • Method Details

    • matches

      boolean matches(UUID classId)
      Whether need to use this customization on the given class id of the value in terms of 1C:Enterprise.
      Parameters:
      classId - class id of the value in terms of 1C:Enterprise, cannot be null
      Returns:
      Whether need to use this customization on the given class id of the value in terms of 1C:Enterprise
    • getType

      Class<T> getType()
      Returns the Value subclass to define deserialization for.
      Returns:
      the Value subclass to define deserialization for, never null
    • readValue

      T readValue(IListInStream inStream, UUID classId)
      Reads Value from list input stream.
      Parameters:
      inStream - the list input stream, cannot be null
      classId - class id of the value in terms of 1C:Enterprise, cannot be null
      Returns:
      deserialized Value, never null
    • writeValue

      void writeValue(IListOutStream outStream, T value)
      Writes Value to list output stream.
      Parameters:
      outStream - the list output stream, cannot be null
      value - the value to write, cannot be null