You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by jo...@apache.org on 2002/06/03 18:47:09 UTC

cvs commit: jakarta-commons-sandbox/betwixt/src/java/org/apache/commons/betwixt/digester AttributeRule.java

jon         2002/06/03 09:47:09

  Modified:    betwixt/src/java/org/apache/commons/betwixt/digester
                        AttributeRule.java
  Log:
  removed unused imports
  
  wrapped long lines
  
  formatting cleanup
  
  -jon
  
  Revision  Changes    Path
  1.5       +10 -22    jakarta-commons-sandbox/betwixt/src/java/org/apache/commons/betwixt/digester/AttributeRule.java
  
  Index: AttributeRule.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/betwixt/src/java/org/apache/commons/betwixt/digester/AttributeRule.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- AttributeRule.java	28 May 2002 23:01:07 -0000	1.4
  +++ AttributeRule.java	3 Jun 2002 16:47:09 -0000	1.5
  @@ -1,8 +1,6 @@
  +package org.apache.commons.betwixt.digester;
  +
   /*
  - * $Header: /home/cvs/jakarta-commons-sandbox/betwixt/src/java/org/apache/commons/betwixt/digester/AttributeRule.java,v 1.4 2002/05/28 23:01:07 jstrachan Exp $
  - * $Revision: 1.4 $
  - * $Date: 2002/05/28 23:01:07 $
  - *
    * ====================================================================
    *
    * The Apache Software License, Version 1.1
  @@ -56,28 +54,14 @@
    * individuals on behalf of the Apache Software Foundation.  For more
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
  - * 
  - * $Id: AttributeRule.java,v 1.4 2002/05/28 23:01:07 jstrachan Exp $
    */
  -package org.apache.commons.betwixt.digester;
  -
   import java.beans.BeanInfo;
   import java.beans.Introspector;
   import java.beans.PropertyDescriptor;
  -import java.lang.reflect.Method;
   
   import org.apache.commons.betwixt.AttributeDescriptor;
   import org.apache.commons.betwixt.ElementDescriptor;
  -import org.apache.commons.betwixt.XMLBeanInfo;
  -import org.apache.commons.betwixt.XMLIntrospector;
   import org.apache.commons.betwixt.expression.ConstantExpression;
  -import org.apache.commons.betwixt.expression.Context;
  -import org.apache.commons.betwixt.expression.Updater;
  -import org.apache.commons.betwixt.expression.MethodExpression;
  -import org.apache.commons.betwixt.expression.MethodUpdater;
  -
  -import org.apache.commons.digester.Rule;
  -import org.apache.commons.digester.Digester;
   
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
  @@ -85,10 +69,12 @@
   import org.xml.sax.Attributes;
   import org.xml.sax.SAXException;
   
  -/** <p><code>AttributeRule</code> the digester Rule for parsing the &lt;attribute&gt; elements.</p>
  +/** 
  +  * <p><code>AttributeRule</code> the digester Rule for parsing the 
  +  * &lt;attribute&gt; elements.</p>
     *
     * @author <a href="mailto:jstrachan@apache.org">James Strachan</a>
  -  * @version $Revision: 1.4 $
  +  * @version $Id: AttributeRule.java,v 1.5 2002/06/03 16:47:09 jon Exp $
     */
   public class AttributeRule extends RuleSupport {
   
  @@ -141,7 +127,8 @@
               parent.addAttributeDescriptor( descriptor );
           }
           else {
  -            throw new SAXException( "Invalid use of <attribute>. It should be nested inside an <element> element" );
  +            throw new SAXException( "Invalid use of <attribute>. It should " +
  +                "be nested inside an <element> element" );
           }            
   
           digester.push(descriptor);        
  @@ -182,7 +169,8 @@
                       for ( int i = 0, size = descriptors.length; i < size; i++ ) {
                           PropertyDescriptor descriptor = descriptors[i];
                           if ( name.equals( descriptor.getName() ) ) {
  -                            XMLIntrospectorHelper.configureProperty( attributeDescriptor, descriptor );
  +                            XMLIntrospectorHelper
  +                                .configureProperty( attributeDescriptor, descriptor );
                               getProcessedPropertyNameSet().add( name );
                               break;
                           }
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>