I have a system when I need to convert one XML to another. Todo so, I have a model that I'm unmarshalling into, doing some necessary changes and then ...
I have a system when I need to convert one XML to another. Todo so, I have a model that I'm unmarshalling into, doing some necessary changes and then ...
I am trying to create an XMLAdapter class for one of my objects. I need to access Getters from another class so that some of the objects can be popula ...
I have a JSON file that I am trying to convert into XML using the JAXB annotation approach. Everything is working fine now and I able to convert the J ...
I have an XML-based database and I have defined a User model with a list of references to Role (another model). I have attached an XMLAdapter to roles ...
I'm developing some JavaSE GUI application which has to store and load it's data from/to XML file (source code avaliable here: https://github.com/SP8E ...
Where do I find a producer/provider/processor implementation for XmlJavaTypeAdapter annotation? There must be some kind of implemetation for this. T ...
I want to convert uid attribute's value in MyJaxbModel class to uppercase during UnMarshalling. I did write UpperCaseAdapter that does the work for me ...
There's a simple class Bean1 with a sublist of type BeanChild1. I am trying to override the class, to change the type of the list. The new child-cl ...
I'm using JAXB to save objects to xml files. Note the fact that I'm using a synchronizedMap(...) wrapper. The above results in the following xml: ...
Problem solved After change the XmlElementRef annotation to @XmlElementRef(name = "Option", type = Option.class, required = false) and add @XmlRootEl ...
I have a date conversion random issue with a Java application. I use a class JaxbDateSerializer which extends XmlAdapter to decode a string date An ...
How can I inject EJBs into the XmlAdapters? The idea is I want to get list of IDs by rest API and convert this array of IDs to List of Objects for En ...
I want to read an integer (inside XML element) to a Semaphore instead of int, effectively calling Semaphore(int theInteger) . Problem is - Semaphore d ...
Java 1.7 Spring 3.1.1 with Spring-WS 2.1.1 Joda Hibernate 3.6 MySQL 5.0.57 Maven 3 Tomcat 7 Eclipse 3.7 Have got the web service deployed and the we ...
I've got an entity which contains a collection of a different type of entities. What I want to do is have JAXB marshal only a select subset of the col ...
I want to change the way XML date format is written, but I don't want to put annotations in every getter of the entire project. Is there a way to set ...
I'm using JAXB to serialize objects to XML. Now I realize that it will exclude natural null values from response but will not exclude null values from ...
I am trying to create an @XmlAdapter to split words in a mixed List into objects of a Wrapper class called Word. This field may also contain instances ...
Namely, upon serialization in the web server I want to set to null the processDefinition field of all instances of the org.jbpm.graph.def.ProcessDefin ...
Is there a way of retrieving the current base URI in an XmlAdapter? Or how is this usually archieved? ...