All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gdv.xport.satz.model.Satz210 Maven / Gradle / Ivy

/*
 * Copyright (c) 2011, 2012 by Oli B.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express orimplied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * (c)reated 26.03.2011 by Oli B. ([email protected])
 */

package gdv.xport.satz.model;

import gdv.xport.util.SatzTyp;

import java.util.HashMap;
import java.util.Map;

/**
 * Diese Klasse repraesentiert die Satzart 210. Es handelt es sich dabei um eine
 * alternative Implementierung der urspruenglichen
 * gdv.xport.satz.VertragsspezifischerTeil-Klasse, die mit 1.0 entsorgt wurde.
 *
 * @author oliver ([email protected])
 * @since 0.6 (26.03.2011)
 * @deprecated besser {@link gdv.xport.util.SatzFactory#getSatz(SatzTyp)} verwenden
 */
@Deprecated
public class Satz210 extends SpartensatzX {

    /** Mapping table for sparte to Feldxxx enumeration. */
    private static final Map MAPPING = new HashMap();

    static {
        MAPPING.put(10, gdv.xport.satz.feld.sparte10.Feld210.values());
        MAPPING.put(30, gdv.xport.satz.feld.sparte30.Feld210.values());
        MAPPING.put(40, gdv.xport.satz.feld.sparte40.Feld210.values());
        MAPPING.put(50, gdv.xport.satz.feld.sparte50.Feld210.values());
        MAPPING.put(70, gdv.xport.satz.feld.sparte70.Feld210.values());
        MAPPING.put(130, gdv.xport.satz.feld.sparte130.Feld210.values());
        MAPPING.put(510, gdv.xport.satz.feld.sparte510.Feld210.values());
    }

    /**
     * Default-Konstruktor.
     */
    public Satz210() {
        this(UNKNOWN_SPARTE);
    }

    /**
	 * Legt ein neues Satz210-Objekt fuer die uebergebene Sparte an.
	 *
	 * @param sparte Sparte (z.B. 10)
	 */
    public Satz210(final int sparte) {
        super(210, sparte);
    }

    /*
     * (non-Javadoc)
     *
     * @see gdv.xport.satz.model.SpartensatzX#getMapping()
     */
    @Override
    protected Map getMapping() {
        return MAPPING;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy