1 /*
2 * jDTAUS Banking Messages
3 * Copyright (c) 2005 Christian Schulte
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 *
19 * $JDTAUS: ReadsTextschluesselMessage.java 8548 2012-06-01 14:39:16Z schulte2005 $
20 */
21 package org.jdtaus.banking.messages;
22
23 import java.util.Locale;
24 import org.jdtaus.core.container.ContainerFactory;
25 import org.jdtaus.core.text.Message;
26
27 /**
28 * Message stating that Textschlüssel are being read.
29 * @author Christian Schulte
30 * @version $JDTAUS: ReadsTextschluesselMessage.java 8548 2012-06-01 14:39:16Z schulte2005 $
31 */
32 public class ReadsTextschluesselMessage extends Message
33 {
34
35 /** Serial version UID for backwards compatibility with 1.11.x classes. */
36 private static final long serialVersionUID = 4267470749107250621L;
37
38 /** Empty array. */
39 private static final Object[] ARGUMENTS =
40 {
41 };
42
43 /** Creates a new {@code ReadsTextschluesselMessage} instance. */
44 public ReadsTextschluesselMessage()
45 {
46 super();
47 }
48
49 /**
50 * {@inheritDoc}
51 *
52 * @return An empty array, since the message has no arguments.
53 */
54 public Object[] getFormatArguments( final Locale locale )
55 {
56 return ARGUMENTS;
57 }
58
59 /**
60 * {@inheritDoc}
61 *
62 * @return The corresponding text from the message's {@code ResourceBundle}
63 * <blockquote><pre>
64 * Reads Textschlüssel.
65 * </pre></blockquote>
66 */
67 public String getText( final Locale locale )
68 {
69 return this.getReadingTextschluesselMessage( locale );
70 }
71
72 //--Messages----------------------------------------------------------------
73
74 // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:jdtausMessages
75 // This section is managed by jdtaus-container-mojo.
76
77 /**
78 * Gets the text of message <code>readingTextschluessel</code>.
79 * <blockquote><pre>Liest Textschlüssel.</pre></blockquote>
80 * <blockquote><pre>Reading Textschlüssel.</pre></blockquote>
81 *
82 * @param locale The locale of the message instance to return.
83 *
84 * @return the text of message <code>readingTextschluessel</code>.
85 */
86 private String getReadingTextschluesselMessage( final Locale locale )
87 {
88 return ContainerFactory.getContainer().
89 getMessage( this, "readingTextschluessel", locale, null );
90
91 }
92
93 // </editor-fold>//GEN-END:jdtausMessages
94
95 //----------------------------------------------------------------Messages--
96 }