avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/i18n/src/java/org/apache/avalon/excalibur/i18n Resources.java
Date Wed, 21 Aug 2002 01:38:25 GMT
mcconnell    2002/08/20 18:38:25

  Modified:    i18n/src/java/org/apache/avalon/excalibur/i18n
                        Resources.java
  Log:
  Addition of method support 6 and 7 object argument on getString( ... )
  
  Revision  Changes    Path
  1.16      +51 -0     jakarta-avalon-excalibur/i18n/src/java/org/apache/avalon/excalibur/i18n/Resources.java
  
  Index: Resources.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/i18n/src/java/org/apache/avalon/excalibur/i18n/Resources.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- Resources.java	7 Aug 2002 05:44:03 -0000	1.15
  +++ Resources.java	21 Aug 2002 01:38:25 -0000	1.16
  @@ -674,6 +674,57 @@
        * Retrieve a string from resource bundle and format it with specified args.
        *
        * @param key the key for resource
  +     * @param arg1 an arg
  +     * @param arg2 an arg
  +     * @param arg3 an arg
  +     * @param arg4 an arg
  +     * @param arg5 an arg
  +     * @param arg6 an arg
  +     * @return the formatted string
  +     */
  +    public String getString( final String key,
  +                             final Object arg1,
  +                             final Object arg2,
  +                             final Object arg3,
  +                             final Object arg4,
  +                             final Object arg5,
  +                             final Object arg6 )
  +    {
  +        final Object[] args = new Object[]{arg1, arg2, arg3, arg4, arg5, arg6};
  +        return format( key, args );
  +    }
  +
  +    /**
  +     * Retrieve a string from resource bundle and format it with specified args.
  +     *
  +     * @param key the key for resource
  +     * @param arg1 an arg
  +     * @param arg2 an arg
  +     * @param arg3 an arg
  +     * @param arg4 an arg
  +     * @param arg5 an arg
  +     * @param arg6 an arg
  +     * @param arg7 an arg
  +     * @return the formatted string
  +     */
  +    public String getString( final String key,
  +                             final Object arg1,
  +                             final Object arg2,
  +                             final Object arg3,
  +                             final Object arg4,
  +                             final Object arg5,
  +                             final Object arg6,
  +                             final Object arg7 )
  +    {
  +        final Object[] args = new Object[]{arg1, arg2, arg3, arg4, arg5, arg6, arg7};
  +        return format( key, args );
  +    }
  +
  +
  +    /**
  +     * Retrieve a string from resource bundle and format it with specified args.
  +     *
  +     * @param key the key for resource
        * @param args an array of args
        * @return the formatted string
        */
  
  
  

--
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