← Prev in month ← Prev in thread

Datatype interface extension

From
Kohsuke KAWAGUCHI <>
Date
2001-09-06T18:40:55+00:00
ID
Thread
Datatype interface extension
This is a SourceForge related issue.


Since we've decided that we disallow context-dependend datatypes from
attribute default values, the Datatype interface is needed to be
extended to have the following method:

boolean isContextDependent();

This method should return false only if the datatype will never, ever need
to access the context information.

Since we are introducing the new method, it will break the backward
compatibility. I assume it's OK at this moment to break backward
compatibility, but I just want to make sure that nobody has serious
problem with it.


Throwing a ContextRequiredException seemed like a good idea but I now
believe there is a problem with this approach. Namely, if you validate
"abc" with the QName type without ValidationContext, it probably won't
throw a ContextRequiredException.


regards,
--
Kohsuke KAWAGUCHI                          +1 650 786 0721
Sun Microsystems                   
← Prev in month ← Prev in thread