users@jaxb.java.net

Build my own implementations?

From: Brant Boehmann <brant.boehmann_at_newmail.cadre5.com>
Date: Thu, 23 Sep 2004 14:05:26 -0400

I'm new to JAXB, and I've stumbled across an interesting issue.
We have a schema which models a bunch of content types for our content
management system (articles, recipes, polls, etc)

If I were creating an object model I would create a ContentType
interface which defines things like getName, get ShortDescription, etc.
getShort Description in one content type may refer to the "description"
element in the recipe schema, but may refer to the "abstract" element in
the artucle schema.

I would like to be able to use the power of interfaces to accomplish
generic things like "add a ContentType to a cart" regardless of what the
specific content type is.

I would like to be able to implement my own classes instead of having
JAXB generate them for me so I can create this logic. However, I really
like the XML marshalling/unmarshalling that JAXB provides. Is there a
way I can turn off "value object generation" and define mapping for the
Marshallers to use?

Thanks

Brant Boehmann
Software Engineer
Cadre5


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net