Interface Renderer<T>

Type Parameters:
T - the external representation
All Known Implementing Classes:
CDAR2Renderer, Converter

public interface Renderer<T>
Interface for creating an externalized version of an internal object model.
Author:
Christian Ohr
  • Method Summary

    Modifier and Type
    Method
    Description
    render(T model, OutputStream result, Object... params)
    Renders the model into its external representation.
    render(T model, Writer result, Object... params)
    Renders the model into its external representation.
    render(T model, Object... params)
    Renders the model into its external representation.
    render(T model, Result result, Object... params)
    Renders the model into its external representation.
  • Method Details

    • render

      Result render(T model, Result result, Object... params) throws IOException
      Renders the model into its external representation.
      Parameters:
      model -
      params - dynamic information used during rendering. See the respective implementation class documentation if this is required or supported.
      Returns:
      the external representation of the model
      Throws:
      RenderException
      IOException
    • render

      OutputStream render(T model, OutputStream result, Object... params) throws IOException
      Renders the model into its external representation.
      Parameters:
      model -
      params - dynamic information used during rendering. See the respective implementation class documentation if this is required or supported.
      Returns:
      the external representation of the model
      Throws:
      RenderException
      IOException
    • render

      Writer render(T model, Writer result, Object... params) throws IOException
      Renders the model into its external representation.
      Parameters:
      model -
      params - dynamic information used during rendering. See the respective implementation class documentation if this is required or supported.
      Returns:
      the external representation of the model
      Throws:
      RenderException
      IOException
    • render

      String render(T model, Object... params)
      Renders the model into its external representation.
      Parameters:
      model -
      params - dynamic information used during rendering. See the respective implementation class documentation if this is required or supported.
      Returns:
      the external representation of the model
      Throws:
      RenderException