cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject svn commit: rev 35599 - cocoon/trunk/src/java/org/apache/cocoon/i18n
Date Mon, 02 Aug 2004 18:41:30 GMT
Author: vgritsenko
Date: Mon Aug  2 11:41:30 2004
New Revision: 35599

Modified:
   cocoon/trunk/src/java/org/apache/cocoon/i18n/BundleFactory.java
   cocoon/trunk/src/java/org/apache/cocoon/i18n/XMLResourceBundle.java
   cocoon/trunk/src/java/org/apache/cocoon/i18n/XMLResourceBundleFactory.java
Log:
whitespaces


Modified: cocoon/trunk/src/java/org/apache/cocoon/i18n/BundleFactory.java
==============================================================================
--- cocoon/trunk/src/java/org/apache/cocoon/i18n/BundleFactory.java	(original)
+++ cocoon/trunk/src/java/org/apache/cocoon/i18n/BundleFactory.java	Mon Aug  2 11:41:30 2004
@@ -1,12 +1,12 @@
 /*
  * Copyright 1999-2004 The Apache Software Foundation.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -26,7 +26,7 @@
  *
  * @author <a href="mailto:kpiroumian@apache.org">Konstantin Piroumian</a>
  * @author <a href="mailto:vgritsenko@apache.org">Vadim Gritsenko</a>
- * @version CVS $Id: BundleFactory.java,v 1.10 2004/07/15 06:05:40 stefano Exp $
+ * @version CVS $Id$
  */
 public interface BundleFactory extends Component {
 
@@ -100,6 +100,6 @@
      * @exception     ComponentException if a bundle is not found
      */
     Bundle select(String bundleName, Locale locale) throws ComponentException;
-    
+
     void release(Bundle bundle);
 }

Modified: cocoon/trunk/src/java/org/apache/cocoon/i18n/XMLResourceBundle.java
==============================================================================
--- cocoon/trunk/src/java/org/apache/cocoon/i18n/XMLResourceBundle.java	(original)
+++ cocoon/trunk/src/java/org/apache/cocoon/i18n/XMLResourceBundle.java	Mon Aug  2 11:41:30
2004
@@ -1,12 +1,12 @@
 /*
  * Copyright 1999-2004 The Apache Software Foundation.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -42,7 +42,7 @@
 /**
  * Implementation of <code>Bundle</code> interface for XML resources. Represents
a
  * single XML message bundle.
- * 
+ *
  * XML format for this resource bundle implementation is the following:
  * <pre>
  * &lt;catalogue xml:lang="en"&gt;
@@ -51,13 +51,13 @@
  *   ...
  * &lt;/catalogue&gt;
  * </pre>
- * 
+ *
  * Value can be any well formed XML snippet and it will be cached by the key specified
  * in the attrbute <code>key</code>. Objects returned by this {@link Bundle}
implementation
  * are instances of the {@link ParamSaxBuffer} class.
- * 
+ *
  * @author <a href="mailto:dev@cocoon.apache.org">Apache Cocoon Team</a>
- * @version CVS $Id: XMLResourceBundle.java,v 1.8 2004/06/24 07:32:17 cziegeler Exp $
+ * @version CVS $Id$
  */
 public class XMLResourceBundle extends AbstractLogEnabled
                                implements Bundle, Serviceable {
@@ -66,23 +66,23 @@
      * Namespace for the Bundle markup
      */
     public static final String NS = "http://apache.org/cocoon/i18n/2.0";
-    
+
     /**
      * XML bundle root element name
      */
     public static final String EL_CATALOGUE = "catalogue";
-    
+
     /**
      * XML bundle message element name
      */
     public static final String EL_MESSAGE = "message";
-    
+
     /**
-     * XML bundle message element's key attribute name 
+     * XML bundle message element's key attribute name
      */
     public static final String AT_KEY = "key";
-    
-    
+
+
     /**
      * Bundle name
      */
@@ -107,7 +107,7 @@
      * Objects stored in the bundle
      */
     protected HashMap values;
-    
+
     /**
      * Service Manager
      */
@@ -120,12 +120,12 @@
         private Map values;
         private int state;
         private String namespace;
-        private ParamSaxBuffer buffer; 
-        
+        private ParamSaxBuffer buffer;
+
         public SAXContentHandler(Map values) {
             this.values = values;
         }
-        
+
         public void setDocumentLocator(Locator arg0) {
             // Ignore
         }
@@ -233,7 +233,7 @@
             }
         }
     }
-    
+
     /**
      * Compose this instance
      *
@@ -376,7 +376,7 @@
         if (value != null) {
             return value.toString();
         }
-        
+
         if(this.parent != null) {
             return this.parent.getString(key);
         }

Modified: cocoon/trunk/src/java/org/apache/cocoon/i18n/XMLResourceBundleFactory.java
==============================================================================
--- cocoon/trunk/src/java/org/apache/cocoon/i18n/XMLResourceBundleFactory.java	(original)
+++ cocoon/trunk/src/java/org/apache/cocoon/i18n/XMLResourceBundleFactory.java	Mon Aug  2
11:41:30 2004
@@ -1,12 +1,12 @@
 /*
  * Copyright 1999-2004 The Apache Software Foundation.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -48,13 +48,13 @@
  * @author <a href="mailto:neeme@one.lv">Neeme Praks</a>
  * @author <a href="mailto:oleg@one.lv">Oleg Podolsky</a>
  * @author <a href="mailto:kpiroumian@apache.org">Konstantin Piroumian</a>
- * @version CVS $Id: XMLResourceBundleFactory.java,v 1.16 2004/07/15 06:05:40 stefano Exp
$
+ * @version CVS $Id$
  */
 public class XMLResourceBundleFactory
        implements BundleFactory, Serviceable, Configurable, Disposable, ThreadSafe, LogEnabled
{
 
     protected Map cache = Collections.synchronizedMap(new HashMap());
-    
+
     /**
      * Should we load bundles to cache on startup or not?
      */
@@ -79,7 +79,7 @@
      * Service Manager
      */
     protected ServiceManager manager = null;
-    
+
     /**
      * Source resolver
      */
@@ -372,7 +372,7 @@
                 throw new CascadingRuntimeException("Cannot resolve " + base, ioe);
             }
         }
-        
+
         sb.append(name);
 
         if (locale != null) {

Mime
View raw message