Mercurial > lada > lada-server
view src/main/java/de/intevation/lada/data/importer/EntryFormat.java @ 409:183f8116d9a6
Added license header to source files.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Mon, 20 Jan 2014 12:27:00 +0100 |
parents | 567ce7697fc7 |
children |
line wrap: on
line source
/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz * Software engineering by Intevation GmbH * * This file is Free Software under the GNU GPL (v>=3) * and comes with ABSOLUTELY NO WARRANTY! Check out * the documentation coming with IMIS-Labordaten-Application for details. */ package de.intevation.lada.data.importer; import java.util.regex.Pattern; /** * An EntryFormat describes the internal structure of LAF-based key-value pairs. * The pattern is a regular expression used to match the value in the LAF * importer. * The entry formats are defined in a config file * (see wiki-doc: https://bfs-intern.intevation.de/Server/Importer). * @author <a href="mailto:rrenkert@intevation.de">Raimund Renkert</a> */ public class EntryFormat { private String key; private Pattern pattern; private Object defaultValue; /** * Default constructor to create a new EntryFormat object. */ public EntryFormat() { } /** * @return the key. */ public String getKey() { return key; } /** * @param key The key to set. */ public void setKey(String key) { this.key = key; } /** * @return the pattern */ public Pattern getPattern() { return pattern; } /** * @param pattern The pattern to set. */ public void setPattern(Pattern pattern) { this.pattern = pattern; } /** * @return the default value. */ public Object getDefaultValue() { return defaultValue; } /** * @param defaultValue the default value to set. */ public void setDefaultValue(Object defaultValue) { this.defaultValue = defaultValue; } }