Interface UnmarshalTypeFactory.UnmarshalTypeFactoryComplement<T,C>

    • 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.