Details
-
Type: New Feature
-
Status: Closed
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
It would be nice to have a way of creating java code from an arbitrary xml file.
For example, the xml file:
<person>
<name>Joe</name>
</person>
could (given a package name) emit:
package personpackage;
public class Person {
private String name;
}
This could be extended by creating types that are bean's or IOC-3 type components.
This would be very handy in the processing of xml, and I think (??) that it could be handled by a special case of Converter.
Am I right?
Thinking of it, it would be VERY interesting to emit java code, pass it into a runtime-code generator (BCEL/ASM/Janino) and be able to use it as an object.
This would enable programs to create data-strctures on the fly based on xml files....