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