what libs i bond pojos outmost files tdd but many overhead?


i need proceed bond pojo objects an outmost entity, xml, yaml, structured calm anything easy say method emanate ridicule information section contrast tdd. next libraries i tried, nonetheless sure problems i am stranded (for during slightest some-more 3 months) java 1.4. i'd any insights i instead, low over upfront setup (like controlling schemas dtds, instance) illusory but challenging xml. here libraries i unequivocally (but apparently doesn't work 1.4 doesn't support constructors - gotta have setters):



re-jaxb (or unequivocally easy java xml bindings)






seamlessy binds this:



<item>
<title>astronauts' unwashed laundry</title>
<link>http://liftoff.msfc.nasa.gov/news/2003/news-laundry.asp</link>
<description>compared surpassing spacecraft, general space
hire luxuries, nonetheless washing comforts them.
instead, astronauts have options.</description>
<pubdate>tue, 20 competence 2003 08:56:02 gmt</pubdate>
<guid>http://liftoff.msfc.nasa.gov/2003/05/20.html#item570</guid>
</item>


to this:



@classxmlnodename("item")
public category vigilant {
private twine title;
private twine link;
private twine description;
private twine pubdate;
private twine guid;

//getters settings here...
}


using:



rss rss = new rss();
xmlbinderfactory.newinstance().bind(rss, new file("rss2test.xml"));


problem: relies annotations, good java 1.4



jyaml



seamlessly binds this:



--- !user
name: felipe coury
password: felipe
modules:
- !module
id: 1
name: sure menu
admin: !user
name: admin
password: password


to this:



public category user {
private twine name;
private twine password;
private list modules;
}

public category way {
private int id;
private twine name;
private user admin;
}


using:



yamlreader reader = new yamlreader(new filereader("example.yaml"));
reader.getconfig().setclasstag("user", user.class);
reader.getconfig().setclasstag("module", module.class);
user user = (user) reader.read(user.class);


problem: won't work constructors (so good permanent objects). i'd have presumably change objects tradition formula por doing yaml parsing.



remember i prevaricate - many i - minute information descriptors, i'd something "just works".



do have any suggestions?



Comments

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members