Module org.refcodes.factory
Package org.refcodes.factory
Interface MarshalTypeFactory.MarshalTypeFactoryComplement<T,C>
- Type Parameters:
T
- The type of the data structure from which a marshaled (external) representation is to be unmarshaled.C
- The type of the complement regarding the type of the unmarshaled representation of theMarshalTypeFactory
.
- All Known Subinterfaces:
MarshalTypeFactory.MarshalTypeFactoryComposite<T,
SRC, C>
- Enclosing interface:
- MarshalTypeFactory<T,
SRC>
public static interface MarshalTypeFactory.MarshalTypeFactoryComplement<T,C>
The
MarshalTypeFactory.MarshalTypeFactoryComplement
provides inverse functionality
to the MarshalTypeFactory
.-
Method Summary
Modifier and TypeMethodDescriptionfromUnmarshaled
(T aDataStructure) This method creates / retrieves (converts to) an instance from the provided external representation.default C
fromUnmarshaled
(T aDataStructure, Map<String, String> aProperties) This method creates / retrieves (converts to) an instance from the provided external representation.
-
Method Details
-
fromUnmarshaled
default C fromUnmarshaled(T aDataStructure, Map<String, String> aProperties) throws org.refcodes.exception.MarshalExceptionThis method creates / retrieves (converts to) an instance from the provided external representation.- Parameters:
aDataStructure
- The data structure to be marshaled.aProperties
- The dynamic properties which are used to configure the desired result.- Returns:
- The according marshaled data structure from the external representation.
- Throws:
org.refcodes.exception.MarshalException
- Thrown when marshaling / serializing a data structure fails.
-
fromUnmarshaled
This method creates / retrieves (converts to) an instance from the provided external representation.- Parameters:
aDataStructure
- The data structure to be marshaled.- Returns:
- The according marshaled data structure from the external representation.
- Throws:
org.refcodes.exception.MarshalException
- Thrown when marshaling / serializing a data structure fails.
-