Interface Serializer<P,I,X extends Exception>
-
- Type Parameters:
P
- Product typeI
- Input typeX
- Error exception type
- All Known Subinterfaces:
BinaryCodec<T>
,BitsCodec<T>
,BooleanCodec<T>
,Codec<P,I,X>
,DataStringCodec<T>
,DecimalCodec<T>
,EmptyCodec<T>
,EnumCodec<T>
,IdentityrefCodec<T>
,IllegalArgumentCodec<P,I>
,InstanceIdentifierCodec<T>
,Int16Codec<T>
,Int32Codec<T>
,Int64Codec<T>
,Int8Codec<T>
,LeafrefCodec<T>
,StringCodec<T>
,Uint16Codec<T>
,Uint32Codec<T>
,Uint64Codec<T>
,Uint8Codec<T>
,UncheckedCodec<P,I,X>
,UncheckedDeserializer<P,I,X>
,UnionCodec<T>
- All Known Implementing Classes:
AbstractCodec
,AbstractDataStringCodec
,AbstractIllegalArgumentCodec
,AbstractIntegerStringCodec
,AbstractModuleStringIdentityrefCodec
,AbstractModuleStringInstanceIdentifierCodec
,AbstractStringIdentityrefCodec
,AbstractStringInstanceIdentifierCodec
,AbstractStringUnionCodec
,AbstractUncheckedCodec
,BinaryStringCodec
,BitsStringCodec
,BooleanStringCodec
,DecimalStringCodec
,EnumStringCodec
,ModuleStringIdentityrefCodec
,StringStringCodec
,TypeDefinitionAwareCodec
@Deprecated(since="7.0.9", forRemoval=true) public interface Serializer<P,I,X extends Exception>
Deprecated, for removal: This API element is subject to removal in a future version.An entity which is able to convert some input into a product.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description @NonNull P
serialize(@NonNull I input)
Deprecated, for removal: This API element is subject to removal in a future version.Convert an input into a product.
-
-
-
Method Detail
-
serialize
@NonNull P serialize(@NonNull I input) throws X extends Exception
Deprecated, for removal: This API element is subject to removal in a future version.Convert an input into a product.- Parameters:
input
- Input- Returns:
- A product
- Throws:
NullPointerException
- if input is nullX
- when input is not validX extends Exception
-
-