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>
TheMarshalTypeFactory.MarshalTypeFactoryComplement
provides inverse functionality to theMarshalTypeFactory
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description C
fromUnmarshaled(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 Detail
-
fromUnmarshaled
default C fromUnmarshaled(T aDataStructure, Map<String,String> aProperties) throws org.refcodes.exception.MarshalException
This 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
C fromUnmarshaled(T aDataStructure) throws org.refcodes.exception.MarshalException
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.
-
-