You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by jv...@apache.org on 2002/06/01 03:58:52 UTC
cvs commit: jakarta-commons-sandbox/betwixt/src/java/org/apache/commons/betwixt/digester XMLIntrospectorHelper.java
jvanzyl 2002/05/31 18:58:52
Modified: betwixt/src/java/org/apache/commons/betwixt/digester
XMLIntrospectorHelper.java
Log:
Use the name mapper strategy when setting the local name of a descriptor.
Revision Changes Path
1.9 +6 -6 jakarta-commons-sandbox/betwixt/src/java/org/apache/commons/betwixt/digester/XMLIntrospectorHelper.java
Index: XMLIntrospectorHelper.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/betwixt/src/java/org/apache/commons/betwixt/digester/XMLIntrospectorHelper.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- XMLIntrospectorHelper.java 29 May 2002 11:54:56 -0000 1.8
+++ XMLIntrospectorHelper.java 1 Jun 2002 01:58:52 -0000 1.9
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-commons-sandbox/betwixt/src/java/org/apache/commons/betwixt/digester/XMLIntrospectorHelper.java,v 1.8 2002/05/29 11:54:56 jvanzyl Exp $
- * $Revision: 1.8 $
- * $Date: 2002/05/29 11:54:56 $
+ * $Header: /home/cvs/jakarta-commons-sandbox/betwixt/src/java/org/apache/commons/betwixt/digester/XMLIntrospectorHelper.java,v 1.9 2002/06/01 01:58:52 jvanzyl Exp $
+ * $Revision: 1.9 $
+ * $Date: 2002/06/01 01:58:52 $
*
* ====================================================================
*
@@ -57,7 +57,7 @@
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
- * $Id: XMLIntrospectorHelper.java,v 1.8 2002/05/29 11:54:56 jvanzyl Exp $
+ * $Id: XMLIntrospectorHelper.java,v 1.9 2002/06/01 01:58:52 jvanzyl Exp $
*/
package org.apache.commons.betwixt.digester;
@@ -99,7 +99,7 @@
* common code shared between the digestor and introspector.</p>
*
* @author <a href="mailto:jstrachan@apache.org">James Strachan</a>
- * @version $Revision: 1.8 $
+ * @version $Revision: 1.9 $
*/
public class XMLIntrospectorHelper {
@@ -343,7 +343,7 @@
ElementDescriptor child = children[0];
String localName = child.getLocalName();
if ( localName == null || localName.length() == 0 ) {
- child.setLocalName( propertyName );
+ child.setLocalName( introspector.getNameMapper().mapTypeToElementName( propertyName ) );
}
}
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>