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:49:14 UTC
cvs commit: jakarta-commons-sandbox/betwixt/src/java/org/apache/commons/betwixt XMLIntrospector.java
jvanzyl 2002/05/31 18:49:14
Modified: betwixt/src/java/org/apache/commons/betwixt
XMLIntrospector.java
Log:
Use the name mapper strategy when setting the local name of the
node descriptor.
Revision Changes Path
1.26 +7 -6 jakarta-commons-sandbox/betwixt/src/java/org/apache/commons/betwixt/XMLIntrospector.java
Index: XMLIntrospector.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/betwixt/src/java/org/apache/commons/betwixt/XMLIntrospector.java,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- XMLIntrospector.java 28 May 2002 23:01:08 -0000 1.25
+++ XMLIntrospector.java 1 Jun 2002 01:49:14 -0000 1.26
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-commons-sandbox/betwixt/src/java/org/apache/commons/betwixt/XMLIntrospector.java,v 1.25 2002/05/28 23:01:08 jstrachan Exp $
- * $Revision: 1.25 $
- * $Date: 2002/05/28 23:01:08 $
+ * $Header: /home/cvs/jakarta-commons-sandbox/betwixt/src/java/org/apache/commons/betwixt/XMLIntrospector.java,v 1.26 2002/06/01 01:49:14 jvanzyl Exp $
+ * $Revision: 1.26 $
+ * $Date: 2002/06/01 01:49:14 $
*
* ====================================================================
*
@@ -57,7 +57,7 @@
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
- * $Id: XMLIntrospector.java,v 1.25 2002/05/28 23:01:08 jstrachan Exp $
+ * $Id: XMLIntrospector.java,v 1.26 2002/06/01 01:49:14 jvanzyl Exp $
*/
package org.apache.commons.betwixt;
@@ -104,7 +104,7 @@
* Later requests for the same class will return the cached value.</p>
*
* @author <a href="mailto:jstrachan@apache.org">James Strachan</a>
- * @version $Revision: 1.25 $
+ * @version $Revision: 1.26 $
*/
public class XMLIntrospector {
@@ -499,7 +499,8 @@
nodeDescriptor = elementDescriptor;
elements.add( nodeDescriptor );
}
- nodeDescriptor.setLocalName( propertyDescriptor.getName() );
+
+ nodeDescriptor.setLocalName( getNameMapper().mapTypeToElementName( propertyDescriptor.getName() ) );
nodeDescriptor.setPropertyName( propertyDescriptor.getName() );
nodeDescriptor.setPropertyType( type );
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>