You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by js...@apache.org on 2002/03/10 01:56:19 UTC
cvs commit: jakarta-commons-sandbox/betwixt/src/java/org/apache/commons/betwixt XMLIntrospector.java
jstrachan 02/03/09 16:56:19
Modified: betwixt/src/java/org/apache/commons/betwixt
XMLIntrospector.java
Log:
Switched the default to be that elements are used for primitive type properties. This seems a much more common use case. Users can always switch it back programatically on the XMLIntrospector.setAttributesForPrimitives(true) or via the .betwixt file.
Revision Changes Path
1.21 +6 -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.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- XMLIntrospector.java 7 Mar 2002 00:34:24 -0000 1.20
+++ XMLIntrospector.java 10 Mar 2002 00:56:19 -0000 1.21
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-commons-sandbox/betwixt/src/java/org/apache/commons/betwixt/XMLIntrospector.java,v 1.20 2002/03/07 00:34:24 jstrachan Exp $
- * $Revision: 1.20 $
- * $Date: 2002/03/07 00:34:24 $
+ * $Header: /home/cvs/jakarta-commons-sandbox/betwixt/src/java/org/apache/commons/betwixt/XMLIntrospector.java,v 1.21 2002/03/10 00:56:19 jstrachan Exp $
+ * $Revision: 1.21 $
+ * $Date: 2002/03/10 00:56:19 $
*
* ====================================================================
*
@@ -57,7 +57,7 @@
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
- * $Id: XMLIntrospector.java,v 1.20 2002/03/07 00:34:24 jstrachan Exp $
+ * $Id: XMLIntrospector.java,v 1.21 2002/03/10 00:56:19 jstrachan Exp $
*/
package org.apache.commons.betwixt;
@@ -100,12 +100,12 @@
* 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.20 $
+ * @version $Revision: 1.21 $
*/
public class XMLIntrospector {
/** should attributes or elements be used for primitive types */
- private boolean attributesForPrimitives = true;
+ private boolean attributesForPrimitives = false;
/** Log used for logging (Doh!) */
protected Log log = LogFactory.getLog( XMLIntrospector.class );
/** Maps classes to <code>XMLBeanInfo</code>'s */
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>