001//@formatter:off
002/*
003 * Abstract Mapper - mappers in this example extend this base class
004 * Code-Beispiel zum Buch Patterns Kompakt, Verlag Springer Vieweg
005 * Copyright 2014 Karl Eilebrecht
006 * 
007 * Licensed under the Apache License, Version 2.0 (the "License"):
008 * you may not use this file except in compliance with the License.
009 * You may obtain a copy of the License at
010 *
011 * http://www.apache.org/licenses/LICENSE-2.0
012 *
013 * Unless required by applicable law or agreed to in writing, software
014 * distributed under the License is distributed on an "AS IS" BASIS,
015 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
016 * See the License for the specific language governing permissions and
017 * limitations under the License.
018 */
019//@formatter:on
020package de.calamanari.pk.mapper;
021
022/**
023 * Abstract Mapper - mappers in this example extend this base class
024 * 
025 * @author <a href="mailto:Karl.Eilebrecht(a/t)calamanari.de">Karl Eilebrecht</a>
026 */
027// Sonar Lint is right, it could be an interface, but I want an abstract class here :)
028@SuppressWarnings("squid:S1610")
029public abstract class AbstractMapper {
030
031    /**
032     * Maps data from the first subsystem's representation to the second one
033     */
034    public abstract void map();
035
036    /**
037     * Maps data from the second subsystem's representation back to the first one
038     */
039    public abstract void mapBack();
040
041}