jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu...@apache.org
Subject cvs commit: jakarta-taglibs/standard/src/javax/servlet/jsp/jstl/fmt LocalizationContext.java
Date Thu, 25 Apr 2002 17:44:00 GMT
luehe       02/04/25 10:44:00

  Modified:    standard/src/javax/servlet/jsp/jstl/fmt
                        LocalizationContext.java
  Log:
  "Beautified" LocalizationContext javadocs so they can be included in the spec
  
  Revision  Changes    Path
  1.4       +19 -11    jakarta-taglibs/standard/src/javax/servlet/jsp/jstl/fmt/LocalizationContext.java
  
  Index: LocalizationContext.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/standard/src/javax/servlet/jsp/jstl/fmt/LocalizationContext.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- LocalizationContext.java	16 Apr 2002 17:34:34 -0000	1.3
  +++ LocalizationContext.java	25 Apr 2002 17:44:00 -0000	1.4
  @@ -66,19 +66,22 @@
    *
    * <p> The resource bundle component is used by <fmt:message> for mapping
    * message keys to localized messages, and the locale component is used by the
  - * <fmt:formatNumber>, <fmt:parseNumber>, <fmt:formatDate>, and
  - * <fmt:parseDate> actions as their formatting or parsing locale, respectively.
  + * <fmt:message>, <fmt:formatNumber>, <fmt:parseNumber>, <fmt:formatDate>,
  + * and <fmt:parseDate> actions as their formatting locale.
    *
    * @author Jan Luehe
    */
   
   public class LocalizationContext {
   
  +    // the localization context's resource bundle
       final private ResourceBundle bundle;
  +
  +    // the localization context's locale
       final private Locale locale;
   
       /**
  -     * Constructor for empty LocalizationContext.
  +     * Constructs an empty I18N localization context.
        */
       public LocalizationContext() {
   	bundle = null;
  @@ -86,10 +89,14 @@
       }
   
       /**
  -     * Constructor.
  +     * Constructs an I18N localization context from the given resource bundle
  +     * and locale.
        *
  -     * @param bundle The resource bundle
  -     * @param locale The locale that led to the resource bundle match
  +     * <p> The specified locale is the application- or browser-based preferred
  +     * locale that led to the resource bundle match.
  +     *
  +     * @param bundle The localization context's resource bundle
  +     * @param locale The localization context's locale
        */
       public LocalizationContext(ResourceBundle bundle, Locale locale) {
   	this.bundle = bundle;
  @@ -97,9 +104,10 @@
       }
   
       /**
  -     * Constructor.
  +     * Constructs an I18N localization context from the given resource bundle.
        *
  -     * <p> The localization context's locale is taken from the resource bundle.
  +     * <p> The localization context's locale is taken from the given
  +     * resource bundle.
        *
        * @param bundle The resource bundle
        */
  @@ -112,7 +120,7 @@
        * Gets the resource bundle of this I18N localization context.
        * 
        * @return The resource bundle of this I18N localization context, or null
  -     * if this I18N localization context does not contain any resource bundle.
  +     * if this I18N localization context is empty
        */ 
       public ResourceBundle getResourceBundle() {
   	return bundle;
  @@ -122,8 +130,8 @@
        * Gets the locale of this I18N localization context.
        *
        * @return The locale of this I18N localization context, or null if this
  -     * I18N localization context does not contain any resource bundle, or its
  -     * resource bundle is a (locale-less) root resource bundle.
  +     * I18N localization context is empty, or its resource bundle is a
  +     * (locale-less) root resource bundle.
        */ 
       public Locale getLocale() {
   	return locale;
  
  
  

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


Mime
View raw message