Module org.refcodes.factory
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>
The
UnmarshalTypeFactory.UnmarshalTypeFactoryComplement
provides inverse functionality
to the UnmarshalTypeFactory
.-
Method Summary
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 Details
-
fromMarshaled
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.UnmarshalExceptionThis 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.
-