ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/util/uk/org/iscream/cms/util/FormatName.java
(Generate patch)

Comparing projects/cms/source/util/uk/org/iscream/cms/util/FormatName.java (file contents):
Revision 1.1 by ajm, Thu Dec 7 19:49:47 2000 UTC vs.
Revision 1.2 by ajm, Fri Dec 8 11:40:08 2000 UTC

# Line 12 | Line 12 | package uk.ac.ukc.iscream.util;
12   * @author  $Author$
13   * @version $Id$
14   */
15 < public class IscreamName {
15 > public class FormatName {
16  
17   //---FINAL ATTRIBUTES---
18    
# Line 24 | Line 24 | public class IscreamName {
24       * This is of use to the override of the toString() as
25       * implemented by most of the iscream objects.
26       *
27 <     * @param friendlyName the friendlyName of the calling class
27 >     * @param friendlyName the configured name of the instance of the calling component the class is in (eg "filter1")
28       * @param className the class name of the calling class, as obtained by getClass().getName()
29       * @param revision the CVS Revision number for the calling class
30       *
31       * @return an iscream standard name to be used as a toString()
32       */
33 <    public static String formatName(String friendlyName, String className, String revision) {
33 >    public static String getName(String friendlyName, String className, String revision) {
34          if (friendlyName == null) {
35              return  "{"+ className + "}(" + revision.substring(11, revision.length() - 2) + ")";
36          }
# Line 43 | Line 43 | public class IscreamName {
43       * A private constructor ensures an instance of this
44       * class CANNOT be created.
45       */
46 <    private IscreamName() {
46 >    private FormatName() {
47          // do nothing on purpose!
48      }
49  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines