> 
> Oh, and also, the Wiki presentation of the feature is great, but it's
> missing a description of the methods in the handler class. I had to look
> at the code to figure out that the method name is "encode/decode" +
> unqualified name of the user type. Maybe encode/decode would suffice?
> Anyway, it has to be documented.
> 

I added this description to the wiki:

The XML Schema should be written in a way to ensure that all possible
validated {{{SimpleValue}}} input is acceptable. As such, the static handler
methods should not throw checked or runtime exceptions if schema validation
was successful. In the case where XML validation was not successful it is
expected that a runtime exception may be thrown from the static handler
method. If callers of the generated code do not validate input before using
the convenience methods they should be prepared to handle undefined runtime
exceptions.

Is this reasonable, or is there a specific exception (either runtime or
checked) that is customary to throw from convenience methods?

Wesley


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@xmlbeans.apache.org
For additional commands, e-mail: dev-h...@xmlbeans.apache.org

Reply via email to