Interface IPlatformSerializerCustomization<T extends Value>
- Type Parameters:
T
- type to define customization for, subclass ofValue
- 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 TypeMethodDescriptiongetType()
Returns theValue
subclass to define deserialization for.boolean
Whether need to use this customization on the given class id of the value in terms of 1C:Enterprise.readValue
(IListInStream inStream, UUID classId) ReadsValue
from list input stream.void
writeValue
(IListOutStream outStream, T value) WritesValue
to list output stream.
-
Method Details
-
matches
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 benull
- Returns:
- Whether need to use this customization on the given class id of the value in terms of 1C:Enterprise
-
getType
Returns theValue
subclass to define deserialization for.- Returns:
- the
Value
subclass to define deserialization for, nevernull
-
readValue
ReadsValue
from list input stream.- Parameters:
inStream
- the list input stream, cannot benull
classId
- class id of the value in terms of 1C:Enterprise, cannot benull
- Returns:
- deserialized
Value
, nevernull
-
writeValue
WritesValue
to list output stream.- Parameters:
outStream
- the list output stream, cannot benull
value
- the value to write, cannot benull
-