Greetings,

I have an xsd:dateTime child element in an XML Schema that I use to statically 
generate Tuscany SDO classes. Since Tuscany does not currently provide a schema 
validation API, I have been using EMF to accomplish this task using the 
following code:

...
Diagnostic diagnostic = 
   Diagnostician.INSTANCE.validate((EObject) 
myDataObjectwithDateTimeChildProperty);
if (diagnostic.getSeverity() == Diagnostic.ERROR)
{
    throw new Exception(diagnostic.getChildren().toString());
}

This technique works fine for most schema validation issues, like min/max facet 
length enforcement for child xsd:strings, etc. However, EMF is performing no 
validation against my Tuscany DateTime field (I can supply a bogus dateTime and 
no diagnostic error is generated). Is this an EMF problem or a Tuscany/EMF 
integration problem? I thought this used to work with the Eclipse EMF-based SDO 
1.0 implementation but I may be wrong. Any suggestions would be greatly 
appreciated.

Thanks in advance,

- Ron

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to