Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/AbstractExporter.java @ 710:cded0924193d
Added generator and facet for error reports.
flys-artifacts/trunk@2166 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 20 Jun 2011 13:47:59 +0000 |
parents | dad1a2c88f9f |
children | efe1b8545f5c |
comparison
equal
deleted
inserted
replaced
709:3b7e9ddf6bb1 | 710:cded0924193d |
---|---|
80 * @param artifacts The artifact that stores the data that has to be | 80 * @param artifacts The artifact that stores the data that has to be |
81 * exported. | 81 * exported. |
82 */ | 82 */ |
83 protected abstract void addData(Object data); | 83 protected abstract void addData(Object data); |
84 | 84 |
85 | 85 @Override |
86 public void init(Document request, OutputStream out, CallContext context) { | 86 public void init(Document request, OutputStream out, CallContext context) { |
87 logger.debug("AbstractExporter.init"); | 87 logger.debug("AbstractExporter.init"); |
88 | 88 |
89 this.request = request; | 89 this.request = request; |
90 this.out = out; | 90 this.out = out; |
91 this.context = context; | 91 this.context = context; |
92 } | 92 } |
93 | 93 |
94 | 94 |
95 @Override | |
95 public void setMasterArtifact(Artifact master) { | 96 public void setMasterArtifact(Artifact master) { |
96 this.master = master; | 97 this.master = master; |
97 } | 98 } |
98 | 99 |
99 | 100 |
107 * @param facet The facet to add - NOTE: the facet needs to fit to the first | 108 * @param facet The facet to add - NOTE: the facet needs to fit to the first |
108 * facet inserted into this exporter. Otherwise this artifact/facet is | 109 * facet inserted into this exporter. Otherwise this artifact/facet is |
109 * skipped. | 110 * skipped. |
110 * @param attr The attr document. | 111 * @param attr The attr document. |
111 */ | 112 */ |
113 @Override | |
112 public void doOut(Artifact artifact, Facet facet, Document attr) { | 114 public void doOut(Artifact artifact, Facet facet, Document attr) { |
113 String name = facet.getName(); | 115 String name = facet.getName(); |
114 | 116 |
115 logger.debug("AbstractExporter.doOut: " + name); | 117 logger.debug("AbstractExporter.doOut: " + name); |
116 | 118 |
130 | 132 |
131 | 133 |
132 /** | 134 /** |
133 * Generates an export based on a specified facet. | 135 * Generates an export based on a specified facet. |
134 */ | 136 */ |
137 @Override | |
135 public void generate() | 138 public void generate() |
136 throws IOException | 139 throws IOException |
137 { | 140 { |
138 logger.debug("AbstractExporter.generate"); | 141 logger.debug("AbstractExporter.generate"); |
139 | 142 |