Daniel Barclay wrote:
> In the JAxMeXS object model (most org.apache.ws.jaxme.xs.* interfaces),
> no traversal methods besides XSType.getSimpleType() and .getComplexType()
> throw SAXException.  However, those two methods do.
> 
> Is that intentional?  It seems like an irregularity that should eventually
> be fixed.

It is intentional, the reason being the following:

Most type properties can be determined within the constructor.
Consequently, they are available immediately and without throwing an
exception.

The simple and complex type details, however, are not, mainly because of
recursive schemas. They are available only after calling the validate()
method, which they call internally.

It is quite possible that someone comes up with a better implementation.
However, the current needs to declare the exceptions.


Sorry,

Jochen

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

Reply via email to