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 ------------------------------------------------------------------------------ I also reviewed the ADBBeanTemplate.xsl itself. I'm thinking of some ideas for implementation. - In the case of Complex Content restriction, overriding the '''setter''' of the restricted element seems to be the right solution. XMLBeans doesn't go with this solution, but seems this methods is more preferable since ADB is aimed to be a lightweight schema compiler/Java bean generator. + In the case of Complex Content restriction, overriding the '''setter''' and '''getter''' of the restricted element seems to be the right solution. XMLBeans doesn't go with this solution, but seems this methods is more preferable since ADB is aimed to be a lightweight schema compiler/Java bean generator. - The overridden '''setter''' is always expected to return '''null'''. + The overridden '''getter''' is always expected to return '''null'''. - So, I think in the DOM tree we should have the "property" node for each element of the base type ( removed or not removed ), but we can add the right attributes to indicate that this element is restricted and its '''setter''' should be overridden and return '''null'''. + So, I think in the DOM tree we should have the "property" node for each element of the base type ( removed or not removed ), but we can add the right attributes to indicate that this element is restricted and its '''setter''' and '''getter''' should be overridden. I am wondering what are the restrictions one can impose in complex content other than removing optional elements in the base type? For instance, what happens when the base type is '''anyType'''? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
