EMMA Coverage Report (generated Wed Oct 03 05:00:03 CEST 2012)
[all classes][org.jdtaus.core.messages]

COVERAGE SUMMARY FOR SOURCE FILE [MandatoryPropertyMessage.java]

nameclass, %method, %block, %line, %
MandatoryPropertyMessage.java100% (1/1)80%  (4/5)90%  (18/20)80%  (4/5)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class MandatoryPropertyMessage100% (1/1)80%  (4/5)90%  (18/20)80%  (4/5)
getFormatArguments (Locale): Object [] 0%   (0/1)0%   (0/2)0%   (0/1)
<static initializer> 100% (1/1)100% (4/4)100% (1/1)
MandatoryPropertyMessage (): void 100% (1/1)100% (3/3)100% (1/1)
getMandatoryPropertyMessage (Locale): String 100% (1/1)100% (7/7)100% (1/1)
getText (Locale): String 100% (1/1)100% (4/4)100% (1/1)

1/*
2 *  jDTAUS Core 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 */
21package org.jdtaus.core.messages;
22 
23import java.util.Locale;
24import org.jdtaus.core.container.ContainerFactory;
25import org.jdtaus.core.text.Message;
26 
27/**
28 * {@code Message} stating that no value was specified for a mandatory property.
29 *
30 * @author <a href="mailto:cs@schulte.it">Christian Schulte</a>
31 * @version $JDTAUS: MandatoryPropertyMessage.java 8641 2012-09-27 06:45:17Z schulte $
32 */
33public final class MandatoryPropertyMessage extends Message
34{
35    //--Contstants--------------------------------------------------------------
36 
37    /** Serial version UID for backwards compatibility with 1.0.x classes. */
38    private static final long serialVersionUID = 2271494962184007236L;
39 
40    //---------------------------------------------------------------Constants--
41    //--Message-----------------------------------------------------------------
42 
43    /** Empty array. */
44    private static final Object[] ARGUMENTS =
45    {
46    };
47 
48    /**
49     * {@inheritDoc}
50     *
51     * @return an empty array, since the message has no arguments.
52     */
53    public Object[] getFormatArguments( final Locale locale )
54    {
55        return ARGUMENTS;
56    }
57 
58    /**
59     * {@inheritDoc}
60     *
61     * @return The corresponding text from the message's {@code ResourceBundle}:
62     * <blockquote><pre>
63     * Missing information.
64     * </pre></blockquote>
65     */
66    public String getText( final Locale locale )
67    {
68        return this.getMandatoryPropertyMessage( locale );
69    }
70 
71    //-----------------------------------------------------------------Message--
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>mandatoryProperty</code>.
79     * <blockquote><pre>Fehlende Angaben.</pre></blockquote>
80     * <blockquote><pre>Missing information.</pre></blockquote>
81     *
82     * @param locale The locale of the message instance to return.
83     *
84     * @return Information about a mandatory property.
85     */
86    private String getMandatoryPropertyMessage( final Locale locale )
87    {
88        return ContainerFactory.getContainer().
89            getMessage( this, "mandatoryProperty", locale, null );
90 
91    }
92 
93// </editor-fold>//GEN-END:jdtausMessages
94 
95    //----------------------------------------------------------------Messages--
96}

[all classes][org.jdtaus.core.messages]
EMMA 2.1.5320 (stable) (C) Vladimir Roubtsov