| [news.eclipse.tools.emf] Re: Serialization: additional date formats |
Jan,
Hi,
I have an EMF model that's been created from an RSA UML model. I'm using XMLResource/XMLResourceFactory to handle the serialization/deserialization.
I'd like to be able to introduce some custom data formats within my XML. For example, let's say that in our XML format we have an attribute that should be expressed as being of type xsd:time. I would like to be able to do that and still have the ECore expression of it be as a Date (with default values for the non-day-of-time portions). That is, I would like to be able to successfully process something like "08:00:00.000-0500" or, better yet, "08:00:00" rather than requiring something like "2007-01-01T08:00:00.000-0500".
Is there any 'quick and dirty' way that I can accomplish this sort of thing, or (in this example) does the fact that XMLTypeFactoryImpl hardwires the set of acceptable date formats mean that I have to provide a fully custom variation on XMLResource/XMLResource factory on down to get the kind of processing I'd like?
Thanks!