commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject cvs commit: jakarta-commons/betwixt/src/java/org/apache/commons/betwixt/io AbstractBeanWriter.java
Date Thu, 21 Aug 2003 22:47:40 GMT
rdonkin     2003/08/21 15:47:40

  Modified:    betwixt/src/java/org/apache/commons/betwixt/io
                        AbstractBeanWriter.java
  Log:
  Improved java docs.
  
  Revision  Changes    Path
  1.19      +22 -11    jakarta-commons/betwixt/src/java/org/apache/commons/betwixt/io/AbstractBeanWriter.java
  
  Index: AbstractBeanWriter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/betwixt/src/java/org/apache/commons/betwixt/io/AbstractBeanWriter.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- AbstractBeanWriter.java	31 Jul 2003 21:40:58 -0000	1.18
  +++ AbstractBeanWriter.java	21 Aug 2003 22:47:40 -0000	1.19
  @@ -66,7 +66,6 @@
   import java.util.HashMap;
   import java.util.Iterator;
   
  -import org.apache.commons.beanutils.ConvertUtils;
   import org.apache.commons.betwixt.AttributeDescriptor;
   import org.apache.commons.betwixt.ElementDescriptor;
   import org.apache.commons.betwixt.Descriptor;
  @@ -77,8 +76,6 @@
   import org.apache.commons.betwixt.expression.Expression;
   import org.apache.commons.betwixt.io.id.SequentialIDGenerator;
   import org.apache.commons.betwixt.digester.XMLIntrospectorHelper;
  -import org.apache.commons.betwixt.strategy.ObjectStringConverter;
  -import org.apache.commons.betwixt.strategy.DefaultObjectStringConverter;
   import org.apache.commons.collections.ArrayStack;
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
  @@ -209,6 +206,7 @@
        * @param localName the local name
        * @param qualifiedName the string naming root element
        * @param bean the <code>Object</code> to write out as xml
  +     * @param context not null
        * 
        * @throws IOException if an IO problem occurs during writing
        * @throws SAXException if an SAX problem occurs during writing 
  @@ -367,7 +365,7 @@
       
       /**
        * Sets the dynamic configuration setting to be used for bean reading.
  -     * @param the BindingConfiguration settings, not null
  +     * @param bindingConfiguration the BindingConfiguration settings, not null
        */
       public void setBindingConfiguration(BindingConfiguration bindingConfiguration) {
           this.bindingConfiguration = bindingConfiguration;
  @@ -735,10 +733,20 @@
                                       if (object == null) {
                                           continue;
                                       }
  -                                    writeBean( namespaceUri, localName, qualifiedName,
object, context );
  +                                    writeBean( 
  +                                            namespaceUri, 
  +                                            localName, 
  +                                            qualifiedName, 
  +                                            object, 
  +                                            context );
                                   }
                               } else {
  -                                writeBean( namespaceUri, localName, qualifiedName, childBean,
context );
  +                                writeBean( 
  +                                            namespaceUri, 
  +                                            localName, 
  +                                            qualifiedName, 
  +                                            childBean, 
  +                                            context );
                               }
                           }                    
                       } else {
  @@ -1484,6 +1492,8 @@
         * Converts an object to a string.
         *
         * @param value the Object to represent as a String, possibly null
  +      * @param descriptor writing out this descriptor not null
  +      * @param context not null
         * @return String representation, not null
         */
       private String convertToString( Object value , Descriptor descriptor, Context context
) {
  @@ -1494,6 +1504,7 @@
       /**
         * Factory method for new contexts.
         * Ensure that they are correctly configured.
  +      * @param bean make a new Context for this bean
         */
       private Context makeContext(Object bean) {
           return new Context( bean, log, bindingConfiguration );
  
  
  

Mime
View raw message