Package org.refcodes.factory
Interface UnmarshalTypeFactory.UnmarshalTypeFactoryComplement<T,C>
-
- Type Parameters:
T
- The type of the data structure to which an external representation is to be unmarshaled.C
- The type of the complement regarding the type of the marshaled (external) representation of theUnmarshalTypeFactory
.
- All Known Subinterfaces:
UnmarshalTypeFactory.UnmarshalTypeFactoryComposite<T,SRC,C>
- Enclosing interface:
- UnmarshalTypeFactory<T,SRC>
public static interface UnmarshalTypeFactory.UnmarshalTypeFactoryComplement<T,C>
TheUnmarshalTypeFactory.UnmarshalTypeFactoryComplement
provides inverse functionality to theUnmarshalTypeFactory
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description T
fromMarshaled(C aExternalRepresentation)
This method creates / retrieves (converts to) an instance from the provided external representation.default T
fromMarshaled(C aExternalRepresentation, Map<String,String> aProperties)
This method creates / retrieves (converts to) an instance from the provided external representation.
-
-
-
Method Detail
-
fromMarshaled
T fromMarshaled(C aExternalRepresentation) throws org.refcodes.exception.UnmarshalException
This method creates / retrieves (converts to) an instance from the provided external representation.- Parameters:
aExternalRepresentation
- The external representation of the data structure to be created.- Returns:
- The according unmarshaled data structure from the external representation.
- Throws:
org.refcodes.exception.UnmarshalException
- Thrown when unmarshaling / deserializing an object fails.
-
fromMarshaled
default T fromMarshaled(C aExternalRepresentation, Map<String,String> aProperties) throws org.refcodes.exception.UnmarshalException
This method creates / retrieves (converts to) an instance from the provided external representation.- Parameters:
aExternalRepresentation
- The external representation of the data structure to be created.aProperties
- The dynamic properties which are used to configure the desired result.- Returns:
- The according unmarshaled data structure from the external representation.
- Throws:
org.refcodes.exception.UnmarshalException
- Thrown when unmarshaling / deserializing an object fails.
-
-