comparison gnv-artifacts/src/main/java/de/intevation/gnv/exports/DefaultProfile.java @ 239:75da91eca29f

Added possibility to print column labels in the first line of an export. Added labels for odv export as well. gnv-artifacts/trunk@307 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 09 Nov 2009 14:11:09 +0000
parents 2ceb4bf51cba
children 3ea030aafe65
comparison
equal deleted inserted replaced
238:a157c6042cb4 239:75da91eca29f
9 */ 9 */
10 public class DefaultProfile 10 public class DefaultProfile
11 implements Export.Profile 11 implements Export.Profile
12 { 12 {
13 protected Export.DataCollector collector; 13 protected Export.DataCollector collector;
14 protected String [] header;
14 protected String [] names; 15 protected String [] names;
15 protected char separator; 16 protected char separator;
16 protected char escapeCharacter; 17 protected char escapeCharacter;
17 protected char quoteCharacter; 18 protected char quoteCharacter;
18 protected String type; 19 protected String type;
20 21
21 public DefaultProfile() { 22 public DefaultProfile() {
22 } 23 }
23 24
24 public DefaultProfile( 25 public DefaultProfile(
26 String [] header,
25 char separator, 27 char separator,
26 char escapeCharacter, 28 char escapeCharacter,
27 char quoteCharacter, 29 char quoteCharacter,
28 String type, 30 String type,
29 String encoding 31 String encoding
30 ) { 32 ) {
33 this.header = header;
31 this.separator = separator; 34 this.separator = separator;
32 this.escapeCharacter = escapeCharacter; 35 this.escapeCharacter = escapeCharacter;
33 this.quoteCharacter = quoteCharacter; 36 this.quoteCharacter = quoteCharacter;
34 this.type = type; 37 this.type = type;
35 this.encoding = encoding; 38 this.encoding = encoding;
56 } 59 }
57 60
58 public String getEncoding() { 61 public String getEncoding() {
59 return encoding; 62 return encoding;
60 } 63 }
64
65 public String[] getHeader() {
66 return header;
67 }
61 } 68 }

http://dive4elements.wald.intevation.org