Dear Wiki user, You have subscribed to a wiki page or wiki category on "Ws Wiki" for change notification.
The following page has been changed by MaryamMoazeni: http://wiki.apache.org/ws/MaryamMoazeni/GSoC2006 ------------------------------------------------------------------------------ OK, now I'm trying to see how can I make JavaBeanWriter work for restriction. At this time, my focus is on Complex Content restriction because I didn't want to get involved with primitive types and how to deal with them now. - After passing the BeanWriterMetaInfoHolder related to the element or complex type to the JavaBeanWriter, a DOM tree is created based on meta info retrieved from the BeanWriterMetaInfoHolder. There is a "property" node added to the root element ("bean") of this tree. I think we can add some attributes about restriction at this node. I haven't read much about transformers yet, but I think we can add attributes about if we can add setters and getters for a certain element of the extended type. + After passing the BeanWriterMetaInfoHolder related to the element or complex type to the JavaBeanWriter, a DOM tree is created based on meta info retrieved from the BeanWriterMetaInfoHolder. There is a "property" node added to the root element ("bean") of this tree. I think we can add some attributes about restriction at this node. I haven't read much about transformers yet, but I think we can add attributes about if we can add setters and getters for a certain element of the base type. - I should also make sure that whether it is needed to check if it is permitted to omit a certain element of the extended type based on "minOccurs" or throwing an exception would be enough. + Therefore, we need to add some fields to the BeanWriterMetaInfoHolder Class regarding these meta info. In SchemaCompiler we should match the elements of the current type with that of base type and fill the BeanWriterMetaInfoHolder accordingly. + + Also the "minOccurs" should be checked to throw exceptions, when a "required" element from the base type is omitted in the current type. + + --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
