Interface UnmarshalFactory.UnmarshalFactoryComplement<C>

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

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

    • fromMarshaled

      <T> T fromMarshaled(C aContext, Class<T> aType) throws org.refcodes.exception.UnmarshalException
      Same as UnmarshalFactory.toUnmarshaled(Object, Class) passing the (source's) complement instead of the source.
      Type Parameters:
      T - the generic type
      Parameters:
      aContext - The context influencing the creation of the instance.
      aType - The type identifying the instance to be created / retrieved.
      Returns:
      The produced instance.
      Throws:
      org.refcodes.exception.UnmarshalException - the unmarshal exception
    • fromMarshaled

      Object fromMarshaled(C aContext, Class<?>... aTypes) throws org.refcodes.exception.UnmarshalException
      Same as UnmarshalFactory.toUnmarshaled(Object, Class...) passing the (source's) complement instead of the source.
      Parameters:
      aContext - The context influencing the creation of the instance.
      aTypes - The types identifying or included by the instance to be created / retrieved.
      Returns:
      The produced instance.
      Throws:
      org.refcodes.exception.UnmarshalException - the unmarshal exception
    • fromMarshaled

      Object fromMarshaled(C aContext, Map<String,String> aProperties, Class<?>... aTypes) throws org.refcodes.exception.UnmarshalException
      Same as UnmarshalFactory.toUnmarshaled(Object, Map, Class...) passing the (source's) complement instead of the source.
      Parameters:
      aContext - The context influencing the creation of the instance.
      aProperties - the properties
      aTypes - The types identifying or included by the instance to be created / retrieved.
      Returns:
      The produced instance.
      Throws:
      org.refcodes.exception.UnmarshalException - the unmarshal exception
    • fromMarshaled

      <T> T fromMarshaled(C aContext, Class<T> aType, Map<String,String> aProperties) throws org.refcodes.exception.UnmarshalException
      Same as UnmarshalFactory.toUnmarshaled(Object, Class, Map) passing the (source's) complement instead of the source.
      Type Parameters:
      T - the generic type
      Parameters:
      aContext - The context influencing the creation of the instance.
      aType - The type identifying the instance to be created / retrieved.
      aProperties - the properties
      Returns:
      The produced instance.
      Throws:
      org.refcodes.exception.UnmarshalException - the unmarshal exception