hivemind-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject cvs commit: jakarta-hivemind/framework/src/java/org/apache/hivemind/parse ConversionDescriptor.java DescriptorParser.java DescriptorParser.properties
Date Wed, 09 Jun 2004 14:51:55 GMT
hlship      2004/06/09 07:51:55

  Modified:    framework/src/java/org/apache/hivemind/parse
                        ConversionDescriptor.java DescriptorParser.java
                        DescriptorParser.properties
  Log:
  All the read-attribute rule to override the attribute's translator.
  
  Revision  Changes    Path
  1.6       +2 -1      jakarta-hivemind/framework/src/java/org/apache/hivemind/parse/ConversionDescriptor.java
  
  Index: ConversionDescriptor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-hivemind/framework/src/java/org/apache/hivemind/parse/ConversionDescriptor.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ConversionDescriptor.java	5 Jun 2004 19:09:13 -0000	1.5
  +++ ConversionDescriptor.java	9 Jun 2004 14:51:55 -0000	1.6
  @@ -122,6 +122,7 @@
                       new ReadAttributeRule(
                           attributeName,
                           constructPropertyName(attributeName),
  +                        null,
                           getLocation()));
               }
               else
  @@ -131,7 +132,7 @@
                       propertyName = constructPropertyName(attributeName);
   
                   _elementModel.addRule(
  -                    new ReadAttributeRule(attributeName, propertyName, amd.getLocation()));
  +                    new ReadAttributeRule(attributeName, propertyName, null, amd.getLocation()));
   
                   _attributeMappings.remove(attributeName);
               }
  
  
  
  1.16      +1 -0      jakarta-hivemind/framework/src/java/org/apache/hivemind/parse/DescriptorParser.java
  
  Index: DescriptorParser.java
  ===================================================================
  RCS file: /home/cvs/jakarta-hivemind/framework/src/java/org/apache/hivemind/parse/DescriptorParser.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- DescriptorParser.java	5 Jun 2004 19:09:13 -0000	1.15
  +++ DescriptorParser.java	9 Jun 2004 14:51:55 -0000	1.16
  @@ -1010,6 +1010,7 @@
           rule.setPropertyName(getAttribute("property"));
           rule.setAttributeName(getAttribute("attribute"));
           rule.setSkipIfNull(getBooleanAttribute("skip-if-null", true));
  +        rule.setTranslator(getAttribute("translator"));
   
           elementModel.addRule(rule);
       }
  
  
  
  1.7       +2 -2      jakarta-hivemind/framework/src/java/org/apache/hivemind/parse/DescriptorParser.properties
  
  Index: DescriptorParser.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-hivemind/framework/src/java/org/apache/hivemind/parse/DescriptorParser.properties,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- DescriptorParser.properties	19 May 2004 15:08:48 -0000	1.6
  +++ DescriptorParser.properties	9 Jun 2004 14:51:55 -0000	1.7
  @@ -59,6 +59,7 @@
   required.read-attribute.property=true
   required.read-attribute.attribute=true
   required.read-attribute.skip-if-null=false
  +required.read-attribute.translator=false
   
   required.read-content.property=true
   
  @@ -76,7 +77,6 @@
   
   required.map.attribute=true
   required.map.property=true
  -
   
   required.sub-module.descriptor=true
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-cvs-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-cvs-help@jakarta.apache.org


Mime
View raw message