1 |
|
//---PACKAGE DECLARATION--- |
2 |
|
|
3 |
|
//---IMPORTS--- |
4 |
+ |
import uk.ac.ukc.iscream.util.IscreamNamer; |
5 |
+ |
import uk.ac.ukc.iscream.util.ReferenceManager; |
6 |
|
|
7 |
|
/** |
8 |
|
* <ONE LINE DESCRIPTION> |
9 |
|
* <DETAILED DESCRIPTION> |
10 |
|
* |
9 |
– |
* $Log$ |
10 |
– |
* Revision 1.1 2000/11/08 18:16:42 ajm |
11 |
– |
* initial checkin of template |
12 |
– |
* |
13 |
– |
* |
11 |
|
* @author $Author$ |
12 |
|
* @version $Id$ |
13 |
|
*/ |
14 |
|
class TemplateClass { |
15 |
+ |
|
16 |
|
//---FINAL ATTRIBUTES--- |
17 |
< |
final String REVISION = "$Revision$"; |
17 |
> |
|
18 |
> |
/** |
19 |
> |
* The current CVS revision of this class |
20 |
> |
*/ |
21 |
> |
public static final String REVISION = "$Revision$"; |
22 |
> |
|
23 |
|
//---STATIC METHODS--- |
24 |
|
|
25 |
|
//---CONSTRUCTORS--- |
27 |
|
//---PUBLIC METHODS--- |
28 |
|
|
29 |
|
/** |
30 |
< |
* Overrides the {@link #java.lang.Object.toString() Object.toString()} |
30 |
> |
* Overrides the {@link java.lang.Object#toString() Object.toString()} |
31 |
|
* method to provide clean logging (every class should have this). |
32 |
+ |
* |
33 |
+ |
* @return the name of this class and its CVS revision |
34 |
|
*/ |
35 |
|
public String toString() { |
36 |
< |
return this.getClass().getName() + REVISION; |
36 |
> |
return uk.ac.ukc.iscream.util.IscreamNamer.formatName( |
37 |
> |
uk.ac.ukc.iscream.util.ReferenceManager.getInstance().getName(), |
38 |
> |
this.getClass().getName(), |
39 |
> |
REVISION); |
40 |
|
} |
41 |
|
|
42 |
|
//---PRIVATE METHODS--- |