T
- The type of the data structure from which a marshaled (external)
representation is to be unmarshaled.SRC
- The type of the marshaled (external) representation.MarshalTypeFactory.MarshalTypeFactoryComposite<T,SRC,C>
@FunctionalInterface public interface MarshalTypeFactory<T,SRC>
MarshalTypeFactory
defines the functionality which must be
provided in order to create marshaling functionality from an internal
representation of a given data structure to an external representation such
as a String
or an InputStream
.Modifier and Type | Interface | Description |
---|---|---|
static interface |
MarshalTypeFactory.MarshalTypeFactoryComplement<T,C> |
The
MarshalTypeFactory.MarshalTypeFactoryComplement provides inverse functionality
to the MarshalTypeFactory . |
static interface |
MarshalTypeFactory.MarshalTypeFactoryComposite<T,SRC,C> |
The
MarshalTypeFactory.MarshalTypeFactoryComposite provides
MarshalTypeFactory as well as
MarshalTypeFactory.MarshalTypeFactoryComplement functionality. |
Modifier and Type | Method | Description |
---|---|---|
SRC |
toMarshaled(T aDataStructure) |
This method creates / retrieves (converts to) from the provided data
structure to its external representation.
|
default SRC |
toMarshaled(T aDataStructure,
Map<String,String> aProperties) |
This method creates / retrieves (converts to) an instance from the
provided external representation.
|
SRC toMarshaled(T aDataStructure) throws org.refcodes.exception.MarshalException
aDataStructure
- The data structure to be marshaled.org.refcodes.exception.MarshalException
- Thrown when marshaling / serializing a data
structure fails.default SRC toMarshaled(T aDataStructure, Map<String,String> aProperties) throws org.refcodes.exception.MarshalException
aDataStructure
- The data structure to be marshaled.aProperties
- The dynamic properties which are used to configure the
desired result.org.refcodes.exception.MarshalException
- Thrown when marshaling / serializing a data
structure fails.Copyright © 2021. All rights reserved.