users@jaxb.java.net

Re: java.util.Properties

From: Dale Wyttenbach <wytten_at_yahoo.com>
Date: Fri, 15 Sep 2006 09:11:12 -0500

>Sorry, I could not understand the requirement - could you please
elaborate a bit?

If you've got XML that looks like this:

       <properties>
           <property>
               <name>color</name>
               <value>red</value>
           </property>
           <property>
               <name>flavor</name>
               <value>cherry</value>
           </property>
       </properties>

Given the appropriate schema, xjc generates code like this:

   public PropertiesType getProperties() {
       return properties;
   }


Is it possible to generate this instead:

   public java.util.Properties getProperties() {
       return properties;
   }