001/*
002 *  jDTAUS Banking Messages
003 *  Copyright (c) 2005 Christian Schulte
004 *
005 *  This library is free software; you can redistribute it and/or
006 *  modify it under the terms of the GNU Lesser General Public
007 *  License as published by the Free Software Foundation; either
008 *  version 2.1 of the License, or any later version.
009 *
010 *  This library is distributed in the hope that it will be useful,
011 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
012 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
013 *  Lesser General Public License for more details.
014 *
015 *  You should have received a copy of the GNU Lesser General Public
016 *  License along with this library; if not, write to the Free Software
017 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
018 *
019 *  $JDTAUS: ReadsTextschluesselMessage.java 8548 2012-06-01 14:39:16Z schulte2005 $
020 */
021package org.jdtaus.banking.messages;
022
023import java.util.Locale;
024import org.jdtaus.core.container.ContainerFactory;
025import org.jdtaus.core.text.Message;
026
027/**
028 * Message stating that Textschlüssel are being read.
029 * @author Christian Schulte
030 * @version $JDTAUS: ReadsTextschluesselMessage.java 8548 2012-06-01 14:39:16Z schulte2005 $
031 */
032public class ReadsTextschluesselMessage extends Message
033{
034
035    /** Serial version UID for backwards compatibility with 1.11.x classes. */
036    private static final long serialVersionUID = 4267470749107250621L;
037
038    /** Empty array. */
039    private static final Object[] ARGUMENTS =
040    {
041    };
042
043    /** Creates a new {@code ReadsTextschluesselMessage} instance. */
044    public ReadsTextschluesselMessage()
045    {
046        super();
047    }
048
049    /**
050     * {@inheritDoc}
051     *
052     * @return An empty array, since the message has no arguments.
053     */
054    public Object[] getFormatArguments( final Locale locale )
055    {
056        return ARGUMENTS;
057    }
058
059    /**
060     * {@inheritDoc}
061     *
062     * @return The corresponding text from the message's {@code ResourceBundle}
063     * <blockquote><pre>
064     * Reads Textschlüssel.
065     * </pre></blockquote>
066     */
067    public String getText( final Locale locale )
068    {
069        return this.getReadingTextschluesselMessage( locale );
070    }
071
072    //--Messages----------------------------------------------------------------
073
074// <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:jdtausMessages
075    // This section is managed by jdtaus-container-mojo.
076
077    /**
078     * Gets the text of message <code>readingTextschluessel</code>.
079     * <blockquote><pre>Liest Textschlüssel.</pre></blockquote>
080     * <blockquote><pre>Reading Textschlüssel.</pre></blockquote>
081     *
082     * @param locale The locale of the message instance to return.
083     *
084     * @return the text of message <code>readingTextschluessel</code>.
085     */
086    private String getReadingTextschluesselMessage( final Locale locale )
087    {
088        return ContainerFactory.getContainer().
089            getMessage( this, "readingTextschluessel", locale, null );
090
091    }
092
093// </editor-fold>//GEN-END:jdtausMessages
094
095    //----------------------------------------------------------------Messages--
096}