• Post Reply Bookmark Topic Watch Topic
  • New Topic

Castor xml : custom field type  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I'm using the castor framework for java - xml binding. I'm trying to figure out a way to add custom types. Can anyone help.


In my xml document, i have an element called returnObject. I use the type attribute to specify the java type like below

However, I also want to specify custom java types.

I've played about with some mapping files without any joy. I have also thought about using a custom FieldHandler, however I believe that this would required me to handle java types such as String, Integer..., which I would prefer not to do.

Any help would be really appreciated. I dont really want to move away from the castor api as this stage.
There is no beard big enough to make me comfortable enough with my masculinity to wear pink. Tiny ad:
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!