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