Hi Thomas,
First of all, you don't need to write that much code to retrieve values
of the facets..
For example, to retrieve enumeration facets all you need is the
following:
private StringList getEnumFacet(XSTypeDefinition xstd){
if (xstd != null &&
xstd.getTypeCategory() == XSTypeDefinition.SIMPLE_TYPE) {
return
((XSSimpleTypeDefinition)xstd).getLexicalEnumeration();
}
return null;
}
Second, why do you choose to use ArrayList..? Is it really worth
creating an extra array and copy all info from StringList into
ArrayList?
Are there any methods missing on StringList that you would like to see
added?
Regarding the API, I believe the model is relatively easy to understand,
since there is almost one-to-one mapping between XML Schema components
described in the spec and the interfaces. Do you have any contrete
suggestions how the API can be simplified? I also believe we've tried to
reduce number of casts you have to make, for example XSTypeDefinition
includes common methods to both simple and complex types, simple type
interface allows you to retrieve easily values of facets using
getLexicalFacetValue, etc.
The docs can definitely be fixed, and suggestions are welcome.
Thank you,
--
Elena Litani / IBM Toronto
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]