1 /*
2  *  CVS: $Id: Helpers.java,v 1.3 2004/07/16 16:22:33 marcus Exp $
3  * 
4  *  This file is part of JZuul.
5  *
6  *  JZuul is free software; you can redistribute it and/or modify
7  *  it under the terms of the GNU General Public License as published by
8  *  the Free Software Foundation; either version 2 of the License, or
9  *  (at your option) any later version.
10 *
11 *  JZuul 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
14 *  GNU General Public License for more details.
15 *
16 *  You should have received a copy of the GNU General Public License
17 *  along with Zuul; if not, write to the Free Software
18 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19 * 
20 *  Copyrigth 2004 by marcus, leh
21 * 
22 */
23
24package org.jzuul.engine;
25
26/**
27 * Diese Klasse enthällt Hilfsfunktionen für das gesamte JZuul Engine
28 * 
29 * 
30 * @version $Revision: 1.3 $
31  */
32public class Helpers {
33    /**
34     * Wandelt das erste Zeichen eines Strings in einen Großbuchstaben um
35     * 
36     * @param value der String dessen erstes Zeichen umgewandelt werden soll
37     * @return              der gleiche String mit dem umgewandelten ersten Zeichen
38     */
39    public static String firstToUpper(String value) {
40        if (value == null) {
41            return null;
42            } 
43        char upcase = java.lang.Character.toUpperCase(value.charAt(0));
44        return String.valueOf(upcase) + value.substring(1);
45        }
46
47
48}
49