Mercurial > lada > lada-server
view src/main/java/de/intevation/lada/importer/laf/EntryFormat.java @ 626:9e733f44d8b0
Code style and comments.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Mon, 20 Apr 2015 17:45:22 +0200 |
parents | 374a2e78cec5 |
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.importer.laf; 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; } }