Source code: org/dinopolis/util/debug/DebugMessageDATE.java
1 /***********************************************************************
2 * @(#)$RCSfile: DebugMessageDATE.java,v $ $Revision: 1.1.1.1 $ $Date: 2003/01/10 15:33:38 $
3 *
4 * Copyright (c) 2000 IICM, Graz University of Technology
5 * Inffeldgasse 16c, A-8010 Graz, Austria.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU Lesser General Public License (LGPL)
9 * as published by the Free Software Foundation; either version 2.1 of
10 * the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this program; if not, write to the
19 * Free Software Foundation, Inc.,
20 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 ***********************************************************************/
22
23
24 package org.dinopolis.util.debug;
25
26 import java.util.Date;
27
28 //______________________________________________________________________
29 //______________________________________________________________________
30 /**
31 * This class is chosen by the DebugMessageFactory depending on the
32 * token used in the message format.
33 *
34 * This implementation returns the current date/time.
35 *
36 */
37 public class DebugMessageDATE extends DebugMessageFormatObject
38 {
39
40 //______________________________________________________________________
41 /**
42 * This implementation returns the current date/time.
43 *
44 * @param level the debug level for the given debug message.
45 * @param debug_message the debug message to be printed.
46 * @param debug_instance the debug object this message string belongs to.
47 * It can be used in the <code>getMessage</code>-method to retrieve
48 * additional information about what should be returned exactly
49 */
50 public String getEvaluatedKeyword(String level,
51 String debug_message,
52 Debug debug_instance)
53 {
54 return(new Date().toString());
55 }
56 }
57
58
59
60