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 the UnmarshalTypeFactory.
All Known Subinterfaces:
UnmarshalTypeFactory.UnmarshalTypeFactoryComposite<T,SRC,C>
Enclosing interface:
UnmarshalTypeFactory<T,SRC>

public static interface UnmarshalTypeFactory.UnmarshalTypeFactoryComplement<T,C>
  • Method Summary

    Modifier and Type
    Method
    Description
    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

      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.