1 |
|
//---PACKAGE DECLARATION--- |
2 |
|
|
3 |
|
//---IMPORTS--- |
4 |
< |
import uk.ac.ukc.iscream.util.NameFormat; |
5 |
< |
import uk.ac.ukc.iscream.util.ReferenceManager; |
4 |
> |
import uk.ac.ukc.iscream.util.*; |
5 |
|
|
6 |
|
/** |
7 |
|
* <ONE LINE DESCRIPTION> |
29 |
|
* Overrides the {@link java.lang.Object#toString() Object.toString()} |
30 |
|
* method to provide clean logging (every class should have this). |
31 |
|
* |
32 |
< |
* This uses the uk.ac.ukc.iscream.util.NameFormat class |
32 |
> |
* This uses the uk.ac.ukc.iscream.util.FormatName class |
33 |
|
* to format the toString() |
34 |
|
* |
35 |
|
* @return the name of this class and its CVS revision |
36 |
|
*/ |
37 |
|
public String toString() { |
38 |
< |
return NameFormat.getName( |
38 |
> |
return FormatName.getName( |
39 |
|
_name, |
40 |
< |
this.getClass().getName(), |
40 |
> |
getClass().getName(), |
41 |
|
REVISION); |
42 |
|
} |
43 |
|
|
56 |
|
* can be placed here. This name could also |
57 |
|
* be changed to null for utility classes. |
58 |
|
*/ |
59 |
< |
_name = <!THIS SHOULD CALL A STATIC NAME IN THE COMPONENT CLASS FOR THIS OBJECT!>; |
59 |
> |
private String _name = <!THIS SHOULD CALL A STATIC NAME IN THE COMPONENT CLASS FOR THIS OBJECT!>; |
60 |
|
|
61 |
|
/** |
62 |
|
* This holds a reference to the |
63 |
|
* system logger that is being used. |
64 |
|
*/ |
65 |
< |
_logger = ReferenceManager.getLogger(); |
65 |
> |
private Logger _logger = ReferenceManager.getInstance().getLogger(); |
66 |
|
|
67 |
|
//---STATIC ATTRIBUTES--- |
68 |
|
|