Questions tagged [xmladapter]
55 questions
0
votes
1 answer
unmarshal synchronized map
I'm using JAXB to save objects to xml files.
@XmlRootElement(name="jaxbobjt")
@XmlAccessorType(XmlAccessType.FIELD)
public class SomeJAXBObject
{
@XmlElementWrapper(name="myEntry")
private Map map =…

bvdb
- 22,839
- 10
- 110
- 123
0
votes
1 answer
JaxbDateSerializer XmlAdapter - date conversion random issue
I have a date conversion random issue with a Java application. I use a class JaxbDateSerializer which extends XmlAdapter to decode a string date
import javax.xml.bind.annotation.adapters.XmlAdapter;
/**
* Adapts a Date for custom marshaling.
*
…

Ludovic
- 1
0
votes
1 answer
JAXB using @XmlJavaTypeAdapter to marshal a subset of a Collection
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 collection, based on some criteria.
@XmlRootElement
@Entity
public class A{
// other fields
…

rarewt
- 13
- 4
0
votes
1 answer
JAXB @XmlMixed and @XmlAdapter
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 of an extension of Word called Group.
The idea is that this:
Some text and a group of…

gatti
- 1,083
- 1
- 11
- 25
0
votes
1 answer
Is it possible to write an XmlAdapter?
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.ProcessDefinition class, so I avoid getting this exception whenever returning values from a CXF web…

eugen_nw
- 147
- 7
0
votes
1 answer
Get current host in XmlAdapter
Is there a way of retrieving the current base URI in an XmlAdapter? Or how is this usually archieved?
public class Service{
...
@GET
public MyEntity getEntity() {
return em.find(MyEntity.class, "dummy");
…

Johannes Staehlin
- 3,680
- 7
- 36
- 50
0
votes
1 answer
JaxB convert XML schema
I have used given in http://jeungun.wordpress.com/2009/09/18/binding-to-dynamically-generated-form-elements-in-spring-mvc/,
i am converting that output to xml using jaxb,
Since the above example returns array list, the output is coming like…

user1716458
- 23
- 4
0
votes
1 answer
Java Webservice - Jersey XmlAdapter for a Map of Maps
I have a Java Webservice that is using Jersey.
Now i want to send a Map of Maps (Rows and Columns) to the Client.
Everything works fine when I leave it as it is. But then the XMLOutput looks like this...
data>
0
…

Chris
- 566
- 1
- 8
- 20
-1
votes
1 answer
Xml Java adapter not working properly
Require help: following XmlJavaTypeAdapter type is not working properly:
public class TestAdapter extends XmlAdapter

manojadams
- 2,314
- 3
- 26
- 30
-1
votes
1 answer
Where do I find a producer/provider/processor implementation for XmlJavaTypeAdapter annotation?
Where do I find a producer/provider/processor implementation for XmlJavaTypeAdapter annotation?
There must be some kind of implemetation for this.
That transforms a String to a class
@XmlJavaTypeAdapter(MyIntegerAdapter.class)
private Integer…

FrederikH
- 139
- 2
- 7