View Javadoc

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: SearchesTextschluesselMessage.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 information is being searched.
29   *
30   * @author Christian Schulte
31   * @version $JDTAUS: SearchesTextschluesselMessage.java 8548 2012-06-01 14:39:16Z schulte2005 $
32   */
33  public final class SearchesTextschluesselMessage extends Message
34  {
35  
36      /** Serial version UID for backwards compatibility with 1.11.x classes. */
37      private static final long serialVersionUID = 4800640627259962318L;
38  
39      /** Empty array. */
40      private static final Object[] ARGUMENTS =
41      {
42      };
43  
44      /** Creates a new {@code SearchesTextschluesselMessage} instance. */
45      public SearchesTextschluesselMessage()
46      {
47          super();
48      }
49  
50      /**
51       * {@inheritDoc}
52       *
53       * @return An empty array, since the message has no arguments.
54       */
55      public Object[] getFormatArguments( final Locale locale )
56      {
57          return ARGUMENTS;
58      }
59  
60      /**
61       * {@inheritDoc}
62       *
63       * @return The corresponding text from the message's {@code ResourceBundle}
64       * <blockquote><pre>
65       * Searches Textschlüssel directory.
66       * </pre></blockquote>
67       */
68      public String getText( final Locale locale )
69      {
70          return this.getSearchingTextschluesselMessage( locale );
71      }
72  
73      //--Messages----------------------------------------------------------------
74  
75  // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:jdtausMessages
76      // This section is managed by jdtaus-container-mojo.
77  
78      /**
79       * Gets the text of message <code>searchingTextschluessel</code>.
80       * <blockquote><pre>Durchsucht Textschlüsselverzeichnis.</pre></blockquote>
81       * <blockquote><pre>Searching Textschlüssel directory.</pre></blockquote>
82       *
83       * @param locale The locale of the message instance to return.
84       *
85       * @return the text of message <code>searchingTextschluessel</code>.
86       */
87      private String getSearchingTextschluesselMessage( final Locale locale )
88      {
89          return ContainerFactory.getContainer().
90              getMessage( this, "searchingTextschluessel", locale, null );
91  
92      }
93  
94  // </editor-fold>//GEN-END:jdtausMessages
95  
96      //----------------------------------------------------------------Messages--
97  }