1 | /* |
2 | * jDTAUS Banking Messages |
3 | * Copyright (C) 2005 Christian Schulte |
4 | * <cs@schulte.it> |
5 | * |
6 | * This library is free software; you can redistribute it and/or |
7 | * modify it under the terms of the GNU Lesser General Public |
8 | * License as published by the Free Software Foundation; either |
9 | * version 2.1 of the License, or any later version. |
10 | * |
11 | * This library is distributed in the hope that it will be useful, |
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 | * Lesser General Public License for more details. |
15 | * |
16 | * You should have received a copy of the GNU Lesser General Public |
17 | * License along with this library; if not, write to the Free Software |
18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
19 | * |
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 a file is being checksummed. |
29 | * |
30 | * @author <a href="mailto:cs@schulte.it">Christian Schulte</a> |
31 | * @version $JDTAUS: ChecksumsFileMessage.java 8661 2012-09-27 11:29:58Z schulte $ |
32 | */ |
33 | public final class ChecksumsFileMessage extends Message |
34 | { |
35 | |
36 | /** Serial version UID for backwards compatibility with 1.0.x classes. */ |
37 | private static final long serialVersionUID = 1362055156122954497L; |
38 | |
39 | /** Empty array. */ |
40 | private static final Object[] ARGUMENTS = |
41 | { |
42 | }; |
43 | |
44 | /** Creates a new {@code ChecksumsFileMessage} instance. */ |
45 | public ChecksumsFileMessage() |
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 | * Computes checksum. |
66 | * </pre></blockquote> |
67 | */ |
68 | public String getText( final Locale locale ) |
69 | { |
70 | return this.getChecksummingFileMessage( 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>checksummingFile</code>. |
80 | * <blockquote><pre>Berechnet Prüfsumme.</pre></blockquote> |
81 | * <blockquote><pre>Computing checksum.</pre></blockquote> |
82 | * |
83 | * @param locale The locale of the message instance to return. |
84 | * |
85 | * @return the text of message <code>checksummingFile</code>. |
86 | */ |
87 | private String getChecksummingFileMessage( final Locale locale ) |
88 | { |
89 | return ContainerFactory.getContainer(). |
90 | getMessage( this, "checksummingFile", locale, null ); |
91 | |
92 | } |
93 | |
94 | // </editor-fold>//GEN-END:jdtausMessages |
95 | |
96 | //----------------------------------------------------------------Messages-- |
97 | } |