avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject cvs commit: avalon-sandbox/meta/src/java/org/apache/avalon/meta/model Profile.java
Date Wed, 11 Dec 2002 05:16:38 GMT
mcconnell    2002/12/10 21:16:38

  Modified:    meta/src/java/org/apache/avalon/meta/info
                        InfoDescriptor.java Type.java
               meta/src/java/org/apache/avalon/meta/model Profile.java
  Log:
  Improvements to the toString() handling
  
  Revision  Changes    Path
  1.2       +11 -1     avalon-sandbox/meta/src/java/org/apache/avalon/meta/info/InfoDescriptor.java
  
  Index: InfoDescriptor.java
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/meta/src/java/org/apache/avalon/meta/info/InfoDescriptor.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- InfoDescriptor.java	24 Nov 2002 12:58:26 -0000	1.1
  +++ InfoDescriptor.java	11 Dec 2002 05:16:38 -0000	1.2
  @@ -148,4 +148,14 @@
       {
           return m_version;
       }
  +
  +    /**
  +     * Return a string representation of the info descriptor.
  +     * @return the stringified type
  +     */
  +    public String toString()
  +    {
  +        return "[" + getName() + "] " + getClassname() + ":" + getVersion();
  +    }
  +
   }
  
  
  
  1.5       +2 -3      avalon-sandbox/meta/src/java/org/apache/avalon/meta/info/Type.java
  
  Index: Type.java
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/meta/src/java/org/apache/avalon/meta/info/Type.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Type.java	7 Dec 2002 09:48:57 -0000	1.4
  +++ Type.java	11 Dec 2002 05:16:38 -0000	1.5
  @@ -392,7 +392,6 @@
        */
       public String toString()
       {
  -        return "Type name: " + getInfo().getName()
  -            + " key: " + getInfo().getClassname();
  +        return getInfo().toString();
       }
   }
  
  
  
  1.5       +3 -5      avalon-sandbox/meta/src/java/org/apache/avalon/meta/model/Profile.java
  
  Index: Profile.java
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/meta/src/java/org/apache/avalon/meta/model/Profile.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Profile.java	3 Dec 2002 07:01:20 -0000	1.4
  +++ Profile.java	11 Dec 2002 05:16:38 -0000	1.5
  @@ -392,10 +392,8 @@
        */
       public String toString()
       {
  -        return "[profile name: " 
  -            + getName()
  -            + ", type: " + getType().getInfo().getClassname()
  -            + "]";
  +        
  +        return "[" + getName() + "] " + getType().toString();
       }
   
       /**
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message