cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor Convertor.java ConvertorBuilder.java DefaultFormatCache.java DummyStringConvertor.java DummyStringConvertorBuilder.java FormattingDateConvertor.java FormattingDateConvertorBuilder.java FormattingDecimalConvertor.java FormattingDecimalConvertorBuilder.java FormattingIntegerConvertor.java FormattingLongConvertor.java FormattingLongConvertorBuilder.java LocaleMap.java MillisDateConvertor.java MillisDateConvertorBuilder.java PlainBooleanConvertor.java PlainBooleanConvertorBuilder.java PlainDecimalConvertor.java PlainDecimalConvertorBuilder.java PlainIntegerConvertor.java PlainIntegerConvertorBuilder.java PlainLongConvertor.java PlainLongConvertorBuilder.java
Date Wed, 31 Dec 2003 17:15:47 GMT
vgritsenko    2003/12/31 09:15:46

  Modified:    src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor
                        Convertor.java ConvertorBuilder.java
                        DefaultFormatCache.java DummyStringConvertor.java
                        DummyStringConvertorBuilder.java
                        FormattingDateConvertor.java
                        FormattingDateConvertorBuilder.java
                        FormattingDecimalConvertor.java
                        FormattingDecimalConvertorBuilder.java
                        FormattingIntegerConvertor.java
                        FormattingLongConvertor.java
                        FormattingLongConvertorBuilder.java LocaleMap.java
                        MillisDateConvertor.java
                        MillisDateConvertorBuilder.java
                        PlainBooleanConvertor.java
                        PlainBooleanConvertorBuilder.java
                        PlainDecimalConvertor.java
                        PlainDecimalConvertorBuilder.java
                        PlainIntegerConvertor.java
                        PlainIntegerConvertorBuilder.java
                        PlainLongConvertor.java
                        PlainLongConvertorBuilder.java
  Log:
  Add versions. Add license.
  
  Revision  Changes    Path
  1.4       +2 -0      cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/Convertor.java
  
  Index: Convertor.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/Convertor.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Convertor.java	10 Dec 2003 17:53:26 -0000	1.3
  +++ Convertor.java	31 Dec 2003 17:15:46 -0000	1.4
  @@ -63,6 +63,8 @@
    * beneficial to pass a {@link FormatCache} object to the convert methods.
    * Some convertors need to build and configure parser or formatting objects,
    * which can be expensive if it needs to be done repeatedly.
  + *
  + * @version CVS $Id$
    */
   public interface Convertor {
       
  
  
  
  1.3       +2 -0      cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/ConvertorBuilder.java
  
  Index: ConvertorBuilder.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/ConvertorBuilder.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ConvertorBuilder.java	3 Sep 2003 12:26:23 -0000	1.2
  +++ ConvertorBuilder.java	31 Dec 2003 17:15:46 -0000	1.3
  @@ -60,6 +60,8 @@
    * always have the local name "convertor" and the woody definition namespace,
    * but attributes and content of the element can vary depending on the
    * ConvertorBuilder implementation.
  + *
  + * @version CVS $Id$
    */
   public interface ConvertorBuilder {
       /**
  
  
  
  1.2       +4 -0      cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/DefaultFormatCache.java
  
  Index: DefaultFormatCache.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/DefaultFormatCache.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DefaultFormatCache.java	15 Jul 2003 14:06:16 -0000	1.1
  +++ DefaultFormatCache.java	31 Dec 2003 17:15:46 -0000	1.2
  @@ -50,6 +50,10 @@
   */
   package org.apache.cocoon.woody.datatype.convertor;
   
  +/**
  + *
  + * @version CVS $Id$
  + */
   public class DefaultFormatCache implements Convertor.FormatCache {
       private Object object;
   
  
  
  
  1.2       +2 -0      cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/DummyStringConvertor.java
  
  Index: DummyStringConvertor.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/DummyStringConvertor.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DummyStringConvertor.java	15 Jul 2003 14:06:16 -0000	1.1
  +++ DummyStringConvertor.java	31 Dec 2003 17:15:46 -0000	1.2
  @@ -55,6 +55,8 @@
   /**
    * Convertor that converts between strings and strings, in other words,
    * it does nothing.
  + *
  + * @version CVS $Id$
    */
   public class DummyStringConvertor implements Convertor {
       public Object convertFromString(String value, Locale locale, Convertor.FormatCache
formatCache) {
  
  
  
  1.2       +2 -0      cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/DummyStringConvertorBuilder.java
  
  Index: DummyStringConvertorBuilder.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/DummyStringConvertorBuilder.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DummyStringConvertorBuilder.java	15 Jul 2003 14:06:16 -0000	1.1
  +++ DummyStringConvertorBuilder.java	31 Dec 2003 17:15:46 -0000	1.2
  @@ -54,6 +54,8 @@
   
   /**
    * Builds {@link DummyStringConvertor}s.
  + *
  + * @version CVS $Id$
    */
   public class DummyStringConvertorBuilder implements ConvertorBuilder {
       public Convertor build(Element configElement) throws Exception {
  
  
  
  1.3       +3 -1      cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/FormattingDateConvertor.java
  
  Index: FormattingDateConvertor.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/FormattingDateConvertor.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- FormattingDateConvertor.java	15 Jul 2003 15:31:23 -0000	1.2
  +++ FormattingDateConvertor.java	31 Dec 2003 17:15:46 -0000	1.3
  @@ -70,10 +70,12 @@
    * pattern for nl-BE will be sought, then one for nl, and if that is not
    * found, finally the locale-independent formatting pattern will be used.
    *
  - * <p>Note: the earlier statement about the fact that this class uses java.text.SimpleDateFormat
  + * <p><strong>NOTE:</strong> the earlier statement about the fact that
this class uses java.text.SimpleDateFormat
    * is not entirely correct. In fact, it uses a small wrapper class that will either delegate
to
    * java.text.SimpleDateFormat or com.ibm.icu.text.SimpleDateFormat. The com.ibm version
will automatically
    * be used if it is present on the classpath, otherwise the java.text version will be used.
  + *
  + * @version CVS $Id$
    */
   public class FormattingDateConvertor implements Convertor {
       /** See {@link #setStyle}. */
  
  
  
  1.2       +2 -0      cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/FormattingDateConvertorBuilder.java
  
  Index: FormattingDateConvertorBuilder.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/FormattingDateConvertorBuilder.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FormattingDateConvertorBuilder.java	15 Jul 2003 14:06:16 -0000	1.1
  +++ FormattingDateConvertorBuilder.java	31 Dec 2003 17:15:46 -0000	1.2
  @@ -60,6 +60,8 @@
   
   /**
    * Builds {@link FormattingDateConvertor}s.
  + *
  + * @version CVS $Id$
    */
   public class FormattingDateConvertorBuilder implements ConvertorBuilder {
       public Convertor build(Element configElement) throws Exception {
  
  
  
  1.3       +2 -0      cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/FormattingDecimalConvertor.java
  
  Index: FormattingDecimalConvertor.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/FormattingDecimalConvertor.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- FormattingDecimalConvertor.java	1 Oct 2003 18:20:23 -0000	1.2
  +++ FormattingDecimalConvertor.java	31 Dec 2003 17:15:46 -0000	1.3
  @@ -75,6 +75,8 @@
    * is not entirely correct. In fact, it uses a small wrapper class that will either delegate
to
    * java.text.DecimalFormat or com.ibm.icu.text.DecimalFormat. The com.ibm version will
automatically
    * be used if it is present on the classpath, otherwise the java.text version will be used.
  + *
  + * @version CVS $Id$
    */
   public class FormattingDecimalConvertor implements Convertor {
       private int variant;
  
  
  
  1.2       +2 -0      cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/FormattingDecimalConvertorBuilder.java
  
  Index: FormattingDecimalConvertorBuilder.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/FormattingDecimalConvertorBuilder.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FormattingDecimalConvertorBuilder.java	25 Jul 2003 16:21:31 -0000	1.1
  +++ FormattingDecimalConvertorBuilder.java	31 Dec 2003 17:15:46 -0000	1.2
  @@ -59,6 +59,8 @@
   
   /**
    * Builds {@link FormattingDecimalConvertor}s.
  + *
  + * @version CVS $Id$
    */
   public class FormattingDecimalConvertorBuilder implements ConvertorBuilder {
       public Convertor build(Element configElement) throws Exception {
  
  
  
  1.2       +2 -3      cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/FormattingIntegerConvertor.java
  
  Index: FormattingIntegerConvertor.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/FormattingIntegerConvertor.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FormattingIntegerConvertor.java	1 Oct 2003 18:20:23 -0000	1.1
  +++ FormattingIntegerConvertor.java	31 Dec 2003 17:15:46 -0000	1.2
  @@ -65,8 +65,7 @@
    * @author <a href="mailto:antonio@apache.org">Antonio Gallardo</a>
    * @version CVS $Id$
   */
  -
  - public class FormattingIntegerConvertor extends FormattingDecimalConvertor {
  +public class FormattingIntegerConvertor extends FormattingDecimalConvertor {
   
       public FormattingIntegerConvertor() {
           super();
  
  
  
  1.2       +2 -0      cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/FormattingLongConvertor.java
  
  Index: FormattingLongConvertor.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/FormattingLongConvertor.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FormattingLongConvertor.java	25 Jul 2003 16:21:31 -0000	1.1
  +++ FormattingLongConvertor.java	31 Dec 2003 17:15:46 -0000	1.2
  @@ -61,6 +61,8 @@
    *
    * <p>This class is mostly the same as the {@link FormattingDecimalConvertor},
    * so see there for more information.
  + *
  + * @version CVS $Id$
    */
   public class FormattingLongConvertor extends FormattingDecimalConvertor {
   
  
  
  
  1.2       +2 -0      cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/FormattingLongConvertorBuilder.java
  
  Index: FormattingLongConvertorBuilder.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/FormattingLongConvertorBuilder.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FormattingLongConvertorBuilder.java	25 Jul 2003 16:21:31 -0000	1.1
  +++ FormattingLongConvertorBuilder.java	31 Dec 2003 17:15:46 -0000	1.2
  @@ -52,6 +52,8 @@
   
   /**
    * Builds {@link FormattingLongConvertor}s.
  + *
  + * @version CVS $Id$
    */
   public class FormattingLongConvertorBuilder extends FormattingDecimalConvertorBuilder {
       protected FormattingDecimalConvertor createConvertor() {
  
  
  
  1.2       +2 -0      cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/LocaleMap.java
  
  Index: LocaleMap.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/LocaleMap.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- LocaleMap.java	15 Jul 2003 14:06:16 -0000	1.1
  +++ LocaleMap.java	31 Dec 2003 17:15:46 -0000	1.2
  @@ -59,6 +59,8 @@
    *
    * <p>This map should be filled once using calls to {@link #put}, before any calls
    * are made to {@link #get}.
  + *
  + * @version CVS $Id$
    */
   public class LocaleMap {
       private FastHashMap map = new FastHashMap();
  
  
  
  1.2       +2 -0      cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/MillisDateConvertor.java
  
  Index: MillisDateConvertor.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/MillisDateConvertor.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MillisDateConvertor.java	15 Jul 2003 14:06:16 -0000	1.1
  +++ MillisDateConvertor.java	31 Dec 2003 17:15:46 -0000	1.2
  @@ -56,6 +56,8 @@
   /**
    * A Convertor for Date objects which uses the number of milliseconds since
    * January 1, 1970, 00:00:00 GMT as string representation.
  + *
  + * @version CVS $Id$
    */
   public class MillisDateConvertor implements Convertor {
       public Object convertFromString(String value, Locale locale, Convertor.FormatCache
formatCache) {
  
  
  
  1.2       +2 -0      cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/MillisDateConvertorBuilder.java
  
  Index: MillisDateConvertorBuilder.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/MillisDateConvertorBuilder.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MillisDateConvertorBuilder.java	15 Jul 2003 14:06:16 -0000	1.1
  +++ MillisDateConvertorBuilder.java	31 Dec 2003 17:15:46 -0000	1.2
  @@ -54,6 +54,8 @@
   
   /**
    * Builds {@link MillisDateConvertor}s.
  + *
  + * @version CVS $Id$
    */
   public class MillisDateConvertorBuilder implements ConvertorBuilder {
       public Convertor build(Element configElement) {
  
  
  
  1.4       +52 -0     cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/PlainBooleanConvertor.java
  
  Index: PlainBooleanConvertor.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/PlainBooleanConvertor.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- PlainBooleanConvertor.java	10 Dec 2003 17:53:26 -0000	1.3
  +++ PlainBooleanConvertor.java	31 Dec 2003 17:15:46 -0000	1.4
  @@ -1,9 +1,61 @@
  +/*
  +
  + ============================================================================
  +                   The Apache Software License, Version 1.1
  + ============================================================================
  +
  + Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
  +
  + Redistribution and use in source and binary forms, with or without modifica-
  + tion, are permitted provided that the following conditions are met:
  +
  + 1. Redistributions of  source code must  retain the above copyright  notice,
  +    this list of conditions and the following disclaimer.
  +
  + 2. Redistributions in binary form must reproduce the above copyright notice,
  +    this list of conditions and the following disclaimer in the documentation
  +    and/or other materials provided with the distribution.
  +
  + 3. The end-user documentation included with the redistribution, if any, must
  +    include  the following  acknowledgment:  "This product includes  software
  +    developed  by the  Apache Software Foundation  (http://www.apache.org/)."
  +    Alternately, this  acknowledgment may  appear in the software itself,  if
  +    and wherever such third-party acknowledgments normally appear.
  +
  + 4. The names "Apache Cocoon" and  "Apache Software Foundation" must  not  be
  +    used to  endorse or promote  products derived from  this software without
  +    prior written permission. For written permission, please contact
  +    apache@apache.org.
  +
  + 5. Products  derived from this software may not  be called "Apache", nor may
  +    "Apache" appear  in their name,  without prior written permission  of the
  +    Apache Software Foundation.
  +
  + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
  + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  + FITNESS  FOR A PARTICULAR  PURPOSE ARE  DISCLAIMED.  IN NO  EVENT SHALL  THE
  + APACHE SOFTWARE  FOUNDATION  OR ITS CONTRIBUTORS  BE LIABLE FOR  ANY DIRECT,
  + INDIRECT, INCIDENTAL, SPECIAL,  EXEMPLARY, OR CONSEQUENTIAL  DAMAGES (INCLU-
  + DING, BUT NOT LIMITED TO, PROCUREMENT  OF SUBSTITUTE GOODS OR SERVICES; LOSS
  + OF USE, DATA, OR  PROFITS; OR BUSINESS  INTERRUPTION)  HOWEVER CAUSED AND ON
  + ANY  THEORY OF LIABILITY,  WHETHER  IN CONTRACT,  STRICT LIABILITY,  OR TORT
  + (INCLUDING  NEGLIGENCE OR  OTHERWISE) ARISING IN  ANY WAY OUT OF THE  USE OF
  + THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  +
  + This software  consists of voluntary contributions made  by many individuals
  + on  behalf of the Apache Software  Foundation and was  originally created by
  + Stefano Mazzocchi  <stefano@apache.org>. For more  information on the Apache
  + Software Foundation, please see <http://www.apache.org/>.
  +
  +*/
   package org.apache.cocoon.woody.datatype.convertor;
   
   import java.util.Locale;
   
   /**
    * Convertor for java.lang.Boolean's.
  + *
  + * @version CVS $Id$
    */
   public class PlainBooleanConvertor implements Convertor {
       public Object convertFromString(String value, Locale locale, Convertor.FormatCache
formatCache) {
  
  
  
  1.2       +52 -0     cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/PlainBooleanConvertorBuilder.java
  
  Index: PlainBooleanConvertorBuilder.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/PlainBooleanConvertorBuilder.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- PlainBooleanConvertorBuilder.java	12 Aug 2003 12:54:45 -0000	1.1
  +++ PlainBooleanConvertorBuilder.java	31 Dec 2003 17:15:46 -0000	1.2
  @@ -1,9 +1,61 @@
  +/*
  +
  + ============================================================================
  +                   The Apache Software License, Version 1.1
  + ============================================================================
  +
  + Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
  +
  + Redistribution and use in source and binary forms, with or without modifica-
  + tion, are permitted provided that the following conditions are met:
  +
  + 1. Redistributions of  source code must  retain the above copyright  notice,
  +    this list of conditions and the following disclaimer.
  +
  + 2. Redistributions in binary form must reproduce the above copyright notice,
  +    this list of conditions and the following disclaimer in the documentation
  +    and/or other materials provided with the distribution.
  +
  + 3. The end-user documentation included with the redistribution, if any, must
  +    include  the following  acknowledgment:  "This product includes  software
  +    developed  by the  Apache Software Foundation  (http://www.apache.org/)."
  +    Alternately, this  acknowledgment may  appear in the software itself,  if
  +    and wherever such third-party acknowledgments normally appear.
  +
  + 4. The names "Apache Cocoon" and  "Apache Software Foundation" must  not  be
  +    used to  endorse or promote  products derived from  this software without
  +    prior written permission. For written permission, please contact
  +    apache@apache.org.
  +
  + 5. Products  derived from this software may not  be called "Apache", nor may
  +    "Apache" appear  in their name,  without prior written permission  of the
  +    Apache Software Foundation.
  +
  + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
  + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  + FITNESS  FOR A PARTICULAR  PURPOSE ARE  DISCLAIMED.  IN NO  EVENT SHALL  THE
  + APACHE SOFTWARE  FOUNDATION  OR ITS CONTRIBUTORS  BE LIABLE FOR  ANY DIRECT,
  + INDIRECT, INCIDENTAL, SPECIAL,  EXEMPLARY, OR CONSEQUENTIAL  DAMAGES (INCLU-
  + DING, BUT NOT LIMITED TO, PROCUREMENT  OF SUBSTITUTE GOODS OR SERVICES; LOSS
  + OF USE, DATA, OR  PROFITS; OR BUSINESS  INTERRUPTION)  HOWEVER CAUSED AND ON
  + ANY  THEORY OF LIABILITY,  WHETHER  IN CONTRACT,  STRICT LIABILITY,  OR TORT
  + (INCLUDING  NEGLIGENCE OR  OTHERWISE) ARISING IN  ANY WAY OUT OF THE  USE OF
  + THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  +
  + This software  consists of voluntary contributions made  by many individuals
  + on  behalf of the Apache Software  Foundation and was  originally created by
  + Stefano Mazzocchi  <stefano@apache.org>. For more  information on the Apache
  + Software Foundation, please see <http://www.apache.org/>.
  +
  +*/
   package org.apache.cocoon.woody.datatype.convertor;
   
   import org.w3c.dom.Element;
   
   /**
    * Builds {PlainBooleanConvertor}s.
  + *
  + * @version CVS $Id$
    */
   public class PlainBooleanConvertorBuilder implements ConvertorBuilder {
       public Convertor build(Element configElement) throws Exception {
  
  
  
  1.2       +4 -2      cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/PlainDecimalConvertor.java
  
  Index: PlainDecimalConvertor.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/PlainDecimalConvertor.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- PlainDecimalConvertor.java	25 Jul 2003 16:21:31 -0000	1.1
  +++ PlainDecimalConvertor.java	31 Dec 2003 17:15:46 -0000	1.2
  @@ -54,8 +54,10 @@
   import java.math.BigDecimal;
   
   /**
  - * Convertor for java.math.BigDecimals that does not do any (Locale-dependent)
  - * formatting.
  + * Convertor for {@link java.math.BigDecimal}s that does not do any
  + * (locale-dependent) formatting.
  + *
  + * @version CVS $Id$
    */
   public class PlainDecimalConvertor implements Convertor {
       public Object convertFromString(String value, Locale locale, Convertor.FormatCache
formatCache) {
  
  
  
  1.2       +54 -0     cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/PlainDecimalConvertorBuilder.java
  
  Index: PlainDecimalConvertorBuilder.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/PlainDecimalConvertorBuilder.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- PlainDecimalConvertorBuilder.java	25 Jul 2003 16:21:31 -0000	1.1
  +++ PlainDecimalConvertorBuilder.java	31 Dec 2003 17:15:46 -0000	1.2
  @@ -1,7 +1,61 @@
  +/*
  +
  + ============================================================================
  +                   The Apache Software License, Version 1.1
  + ============================================================================
  +
  + Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
  +
  + Redistribution and use in source and binary forms, with or without modifica-
  + tion, are permitted provided that the following conditions are met:
  +
  + 1. Redistributions of  source code must  retain the above copyright  notice,
  +    this list of conditions and the following disclaimer.
  +
  + 2. Redistributions in binary form must reproduce the above copyright notice,
  +    this list of conditions and the following disclaimer in the documentation
  +    and/or other materials provided with the distribution.
  +
  + 3. The end-user documentation included with the redistribution, if any, must
  +    include  the following  acknowledgment:  "This product includes  software
  +    developed  by the  Apache Software Foundation  (http://www.apache.org/)."
  +    Alternately, this  acknowledgment may  appear in the software itself,  if
  +    and wherever such third-party acknowledgments normally appear.
  +
  + 4. The names "Apache Cocoon" and  "Apache Software Foundation" must  not  be
  +    used to  endorse or promote  products derived from  this software without
  +    prior written permission. For written permission, please contact
  +    apache@apache.org.
  +
  + 5. Products  derived from this software may not  be called "Apache", nor may
  +    "Apache" appear  in their name,  without prior written permission  of the
  +    Apache Software Foundation.
  +
  + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
  + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  + FITNESS  FOR A PARTICULAR  PURPOSE ARE  DISCLAIMED.  IN NO  EVENT SHALL  THE
  + APACHE SOFTWARE  FOUNDATION  OR ITS CONTRIBUTORS  BE LIABLE FOR  ANY DIRECT,
  + INDIRECT, INCIDENTAL, SPECIAL,  EXEMPLARY, OR CONSEQUENTIAL  DAMAGES (INCLU-
  + DING, BUT NOT LIMITED TO, PROCUREMENT  OF SUBSTITUTE GOODS OR SERVICES; LOSS
  + OF USE, DATA, OR  PROFITS; OR BUSINESS  INTERRUPTION)  HOWEVER CAUSED AND ON
  + ANY  THEORY OF LIABILITY,  WHETHER  IN CONTRACT,  STRICT LIABILITY,  OR TORT
  + (INCLUDING  NEGLIGENCE OR  OTHERWISE) ARISING IN  ANY WAY OUT OF THE  USE OF
  + THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  +
  + This software  consists of voluntary contributions made  by many individuals
  + on  behalf of the Apache Software  Foundation and was  originally created by
  + Stefano Mazzocchi  <stefano@apache.org>. For more  information on the Apache
  + Software Foundation, please see <http://www.apache.org/>.
  +
  +*/
   package org.apache.cocoon.woody.datatype.convertor;
   
   import org.w3c.dom.Element;
   
  +/**
  + *
  + * @version CVS $Id$
  + */
   public class PlainDecimalConvertorBuilder implements ConvertorBuilder {
       public Convertor build(Element configElement) throws Exception {
           return new PlainDecimalConvertor();
  
  
  
  1.2       +3 -1      cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/PlainIntegerConvertor.java
  
  Index: PlainIntegerConvertor.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/PlainIntegerConvertor.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- PlainIntegerConvertor.java	1 Oct 2003 18:20:23 -0000	1.1
  +++ PlainIntegerConvertor.java	31 Dec 2003 17:15:46 -0000	1.2
  @@ -58,6 +58,8 @@
    * 
    * @author <a href="mailto:antonio@apache.org">Antonio Gallardo</a>
    * @version CVS $Id$ 
  + *
  + * @version CVS $Id$
    */
   public class PlainIntegerConvertor implements Convertor {
       public Object convertFromString(String value, Locale locale, Convertor.FormatCache
formatCache) {
  
  
  
  1.2       +3 -1      cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/PlainIntegerConvertorBuilder.java
  
  Index: PlainIntegerConvertorBuilder.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/PlainIntegerConvertorBuilder.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- PlainIntegerConvertorBuilder.java	1 Oct 2003 18:20:23 -0000	1.1
  +++ PlainIntegerConvertorBuilder.java	31 Dec 2003 17:15:46 -0000	1.2
  @@ -57,6 +57,8 @@
    * 
    * @author <a href="mailto:antonio@apache.org">Antonio Gallardo</a>
    * @version CVS $Id$
  + *
  + * @version CVS $Id$
    */
   public class PlainIntegerConvertorBuilder implements ConvertorBuilder {
       public Convertor build(Element configElement) throws Exception {
  
  
  
  1.2       +2 -0      cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/PlainLongConvertor.java
  
  Index: PlainLongConvertor.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/PlainLongConvertor.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- PlainLongConvertor.java	15 Jul 2003 14:06:16 -0000	1.1
  +++ PlainLongConvertor.java	31 Dec 2003 17:15:46 -0000	1.2
  @@ -55,6 +55,8 @@
   /**
    * Convertor for java.lang.Longs that does not do any (Locale-dependent)
    * formatting. It simply uses String.valueOf() and Long.parseLong().
  + *
  + * @version CVS $Id$
    */
   public class PlainLongConvertor implements Convertor {
       public Object convertFromString(String value, Locale locale, Convertor.FormatCache
formatCache) {
  
  
  
  1.2       +2 -0      cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/PlainLongConvertorBuilder.java
  
  Index: PlainLongConvertorBuilder.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/convertor/PlainLongConvertorBuilder.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- PlainLongConvertorBuilder.java	15 Jul 2003 14:06:16 -0000	1.1
  +++ PlainLongConvertorBuilder.java	31 Dec 2003 17:15:46 -0000	1.2
  @@ -54,6 +54,8 @@
   
   /**
    * Builds {@link PlainLongConvertor}s.
  + *
  + * @version CVS $Id$
    */
   public class PlainLongConvertorBuilder implements ConvertorBuilder {
       public Convertor build(Element configElement) throws Exception {
  
  
  

Mime
View raw message