My target is to migrate an application from jaxb1 to jaxb2
I have many "services", all of them extending the class "Service":
public abstract class Service extends MarshallableRootElement implements
RootElement {
...
private List _Content = PredicatedLists.createInvalidating(this, new
ContentPredicate(), new ArrayList());
...
public void marshal(Marshaller m)
throws IOException {
XMLWriter w = m.writer();
w.start("Service");
w.attribute("Name", _Name.toString());
for (Iterator i = _Content.iterator(); i.hasNext();) {
m.marshal(((MarshallableObject) i.next()));
}
w.end("Service");
}
...
}
My questions are:
1.How can I populate the "_Content" List instead of the use of
createInvalidating.
2.The input param to the marshal method (Marshaller m) is an XMLWriter.What
can I use at jaxb2?
Thanks in advance
--bentzy
--
View this message in context: http://www.nabble.com/migration--%3E-jaxb2-issue-tf3233024.html#a8983158
Sent from the java.net - jaxb users mailing list archive at Nabble.com.