| 1 |
ajm |
1.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.11 2001/03/22 21:50:41 tdb1 Exp $ |
| 11 |
|
|
*/ |
| 12 |
|
|
class TemplateClass { |
| 13 |
|
|
|
| 14 |
|
|
//---FINAL / FINAL STATIC ATTRIBUTES--- |
| 15 |
|
|
|
| 16 |
|
|
/** |
| 17 |
|
|
* The current CVS revision of this class |
| 18 |
|
|
*/ |
| 19 |
|
|
public static final String REVISION = "$Revision: 1.11 $"; |
| 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 |
|
|
* This uses the uk.ac.ukc.iscream.util.FormatName class |
| 32 |
|
|
* to format the toString() |
| 33 |
|
|
* |
| 34 |
|
|
* @return the name of this class and its CVS revision |
| 35 |
|
|
*/ |
| 36 |
|
|
public String toString() { |
| 37 |
|
|
return FormatName.getName( |
| 38 |
|
|
_name, |
| 39 |
|
|
getClass().getName(), |
| 40 |
|
|
REVISION); |
| 41 |
|
|
} |
| 42 |
|
|
|
| 43 |
|
|
//---PRIVATE/PROTECTED METHODS--- |
| 44 |
|
|
|
| 45 |
|
|
//---ACCESSOR/MUTATOR METHODS--- |
| 46 |
|
|
|
| 47 |
|
|
//---ATTRIBUTES--- |
| 48 |
|
|
|
| 49 |
|
|
/** |
| 50 |
|
|
* This is the friendly identifier of the |
| 51 |
|
|
* component this class is running in. |
| 52 |
|
|
* eg, a Filter may be called "filter1", |
| 53 |
|
|
* If this class does not have an owning |
| 54 |
|
|
* component, a name from the configuration |
| 55 |
|
|
* can be placed here. This name could also |
| 56 |
|
|
* be changed to null for utility classes. |
| 57 |
|
|
*/ |
| 58 |
|
|
private String _name = <!THIS SHOULD CALL A STATIC NAME IN THE COMPONENT CLASS FOR THIS OBJECT!>; |
| 59 |
|
|
|
| 60 |
|
|
/** |
| 61 |
|
|
* This holds a reference to the |
| 62 |
|
|
* system logger that is being used. |
| 63 |
|
|
*/ |
| 64 |
|
|
private Logger _logger = Logger.getInstance(); |
| 65 |
|
|
|
| 66 |
|
|
//---STATIC ATTRIBUTES--- |
| 67 |
|
|
|
| 68 |
|
|
} |