ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/TemplateClass.java
Revision: 1.5
Committed: Mon Nov 13 18:20:09 2000 UTC (23 years, 5 months ago) by tdb
Branch: MAIN
Changes since 1.4: +4 -4 lines
Log Message:
Modified toString() to be the format:

    className(cvsRevision)

File Contents

# Content
1 //---PACKAGE DECLARATION---
2
3 //---IMPORTS---
4
5 /**
6 * <ONE LINE DESCRIPTION>
7 * <DETAILED DESCRIPTION>
8 *
9 * @author $Author: tdb1 $
10 * @version $Id: TemplateClass.java,v 1.4 2000/11/13 17:08:13 tdb1 Exp $
11 */
12 class TemplateClass {
13
14 //---FINAL ATTRIBUTES---
15
16 /**
17 * The current CVS revision of this class
18 */
19 public final String REVISION = "$Revision: 1.4 $";
20
21 //---STATIC METHODS---
22
23 //---CONSTRUCTORS---
24
25 //---PUBLIC METHODS---
26
27 /**
28 * Overrides the {@link java.lang.Object#toString() Object.toString()}
29 * method to provide clean logging (every class should have this).
30 *
31 * @return the name of this class and its CVS revision
32 */
33 public String toString() {
34 return this.getClass().getName() + "(" + REVISION.substring(11, REVISION.length() - 2) + ")";
35 }
36
37 //---PRIVATE METHODS---
38
39 //---ACCESSOR/MUTATOR METHODS---
40
41 //---ATTRIBUTES---
42
43 //---STATIC ATTRIBUTES---
44
45 }