Interface MarshalFactory.MarshalFactoryComplement<C>

Type Parameters:
C - The type of the complement regarding the type of the MarshalFactory.
All Known Subinterfaces:
MarshalFactory.MarshalFactoryComposite<T,C>
Enclosing interface:
MarshalFactory<T>

public static interface MarshalFactory.MarshalFactoryComplement<C>
The MarshalFactory.MarshalFactoryComplement provides inverse functionality to the MarshalFactory.
  • Method Details

    • fromUnmarshaled

      <SRC> C fromUnmarshaled(SRC aContext) throws org.refcodes.exception.MarshalException
      Same as MarshalFactory.toMarshaled(Object) returning an InputStream instead of a String.
      Type Parameters:
      SRC - the generic type
      Parameters:
      aContext - the context
      Returns:
      The instance being fabricated by this factory.
      Throws:
      org.refcodes.exception.MarshalException - the marshal exception
    • fromUnmarshaled

      default <SRC> C fromUnmarshaled(SRC aContext, Map<String,String> aProperties) throws org.refcodes.exception.MarshalException
      Type Parameters:
      SRC - the generic type
      Parameters:
      aContext - the context
      aProperties - the properties
      Returns:
      The instance being fabricated by this factory.
      Throws:
      org.refcodes.exception.MarshalException - the marshal exception