Mercurial > dive4elements > gnv-client
view gnv-artifacts/src/main/java/de/intevation/gnv/exports/DefaultProfile.java @ 231:74255064a4c5
Added the Region-Filter to the Workflow of the Artifacttescases to be able to test it automatically.
Checkin laer because of trouble with checksum of these file
gnv-artifacts/trunk@299 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Fri, 06 Nov 2009 11:12:45 +0000 |
parents | f68ffbe974a0 |
children | 2ceb4bf51cba |
line wrap: on
line source
package de.intevation.gnv.exports; /** * @author Sascha L. Teichmann (sascha.teichmann@intevation.de) * @author Ingo Weinzierl (ingo.weinzierl@intevation.de) */ public class DefaultProfile implements Export.Profile { protected String [] names; protected char separator; protected char escapeCharacter; protected char quoteCharacter; protected String type; protected String encoding; public DefaultProfile() { } public DefaultProfile( String [] names, char separator, char escapeCharacter, char quoteCharacter, String type, String encoding ) { this.names = names; this.separator = separator; this.escapeCharacter = escapeCharacter; this.quoteCharacter = quoteCharacter; this.type = type; this.encoding = encoding; } public int numberColumns() { return names.length; } public String getHeader(int index) { return names[index]; } public String toString(int index, String value) { return value; } public char getSeparator() { return separator; } public char getEscapeCharacter() { return escapeCharacter; } public char getQuoteCharacter() { return quoteCharacter; } public String getType() { return type; } public String getEncoding() { return encoding; } }