Interface MarshalTypeFactory.MarshalTypeFactoryComplement<T,C>

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