donaldp     2002/10/01 18:21:38

  Modified:    info/src/java/org/apache/avalon/framework/tools/infobuilder
                        LegacyBlockInfoCreator.java
  Log:
  Renaming of tag --> attribute
  
  Revision  Changes    Path
  1.4       +21 -21    
jakarta-avalon-excalibur/info/src/java/org/apache/avalon/framework/tools/infobuilder/LegacyBlockInfoCreator.java
  
  Index: LegacyBlockInfoCreator.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-avalon-excalibur/info/src/java/org/apache/avalon/framework/tools/infobuilder/LegacyBlockInfoCreator.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- LegacyBlockInfoCreator.java       2 Oct 2002 01:16:49 -0000       1.3
  +++ LegacyBlockInfoCreator.java       2 Oct 2002 01:21:38 -0000       1.4
  @@ -266,18 +266,18 @@
           final String implementationKey = service.getAttribute( "name" );
           final String version = service.getAttribute( "version", "1.0.0" );
   
  -        final ArrayList tagSet = new ArrayList();
  -        final Attribute tag = createSimpleTag( "avalon", "version", version );
  -        tagSet.add( tag );
  +        final ArrayList attributeSet = new ArrayList();
  +        final Attribute attribute = createSimpleAttribute( "avalon", "version", 
version );
  +        attributeSet.add( attribute );
           if( isManagement )
           {
  -            final Attribute mxTag =
  -                createSimpleTag( "phoenix", "mx", "true" );
  -            tagSet.add( mxTag );
  +            final Attribute mxAttribute =
  +                createSimpleAttribute( "phoenix", "mx", "true" );
  +            attributeSet.add( mxAttribute );
           }
   
  -        final Attribute[] tags = (Attribute[])tagSet.toArray( new Attribute[ 
tagSet.size() ] );
  -        return new ServiceDescriptor( implementationKey, tags );
  +        final Attribute[] attributes = (Attribute[])attributeSet.toArray( new 
Attribute[ attributeSet.size() ] );
  +        return new ServiceDescriptor( implementationKey, attributes );
       }
   
       /**
  @@ -296,34 +296,34 @@
           final String version = config.getChild( "version" ).getValue();
           final String schemaType = config.getChild( "schema-type" ).getValue();
   
  -        final ArrayList tagSet = new ArrayList();
  -        final Attribute tag = createSimpleTag( "avalon", "version", version );
  -        tagSet.add( tag );
  +        final ArrayList attributeSet = new ArrayList();
  +        final Attribute attribute = createSimpleAttribute( "avalon", "version", 
version );
  +        attributeSet.add( attribute );
           if( null != schemaType )
           {
  -            final Attribute schemaTag =
  -                createSimpleTag( "phoenix", "schema-type", schemaType );
  -            tagSet.add( schemaTag );
  +            final Attribute schemaAttribute =
  +                createSimpleAttribute( "phoenix", "schema-type", schemaType );
  +            attributeSet.add( schemaAttribute );
           }
   
  -        final Attribute[] tags = (Attribute[])tagSet.toArray( new Attribute[ 
tagSet.size() ] );
  -        return new ComponentDescriptor( name, classname, tags );
  +        final Attribute[] attributes = (Attribute[])attributeSet.toArray( new 
Attribute[ attributeSet.size() ] );
  +        return new ComponentDescriptor( name, classname, attributes );
       }
   
       /**
  -     * Helper method to create simple tags with one parameter.
  +     * Helper method to create simple attributes with one parameter.
        *
        * @param name the name of the parameter
        * @param value the value of the parameter
  -     * @param tagName the name of the tag
  +     * @param attributeName the name of the attribute
        * @return
        */
  -    private Attribute createSimpleTag( final String tagName,
  +    private Attribute createSimpleAttribute( final String attributeName,
                                    final String name,
                                    final String value )
       {
           final Properties parameters = new Properties();
           parameters.setProperty( name, value );
  -        return new Attribute( tagName, parameters );
  +        return new Attribute( attributeName, parameters );
       }
   }
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to