Mercurial > dive4elements > river
view flys-artifacts/src/main/java/de/intevation/flys/exports/OutGenerator.java @ 340:b36fd8f21e6a
Implementation of interfaces and its default implementations and a factory to work with themes.
flys-artifacts/trunk@1739 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 21 Apr 2011 08:44:41 +0000 |
parents | 8940b0885865 |
children | 8830eecad69e |
line wrap: on
line source
package de.intevation.flys.exports; import java.io.IOException; import java.io.OutputStream; import org.w3c.dom.Document; import de.intevation.artifacts.Artifact; import de.intevation.artifacts.CallContext; /** * An OutGenerator is used to create a collected outputs of a list of Artifacts. * * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> */ public interface OutGenerator { /** * Initializes the OutGenerator with meta information which are necessary * for the output generation. * * @param request The incomding request document. * @param out The output stream. * @param context The CallContext that provides further information and * objects used for the output generation. */ void init(Document request, OutputStream out, CallContext context); /** * Creates the output of an Artifact and appends that single output to the * total output. * * @param artifact The artifact that provides information and data for the * single output. * @param attr A document that might contain some attributes used while * producing the output. */ void doOut(Artifact artifact, Document attr); /** * Writes the collected output of all artifacts specified in the * <i>request</i> (see init()) document to the OutputStream <i>out</i> (see * init()). */ void generate() throws IOException; } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :