[ https://issues.apache.org/jira/browse/WSCOMMONS-559?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Hubick updated WSCOMMONS-559: ----------------------------------- Attachment: xmlschema_attr_primitive_type.patch Hi! Thanks for applying my patch, as I take it that implies you think the code looks good!? :) I would like to offer this followup attachment as a small tweak... This patch first renames the methods I added from "getXXX()" to "resolveXXX()" with the hopes that this will distinguish between retrieving information specified by that particular schema element, versus information that is being "resolved" or "looked up" using that element as a starting point. This patch also changes the getter for "Root Type Name" to "Primitive Type Name", as that's the correct terminology for what it's trying to retrieve, as technically all elements should have either 'anyType' or 'anySimpleType' as their "root" type, and a method which should always return the same thing isn't so useful :) Is there any plans for XML Schema 1.1 support? What would the impact of Type Alternatives ( http://www.w3.org/TR/xmlschema11-1/#cTypeAlternative ) be on these resolve methods? I'm wondering if there should be some kind of "Context" interface passed as an optional argument? Thanks for your quick attention and feedback! > Utils to ease use of XmlSchema in determining instance attribute types > ---------------------------------------------------------------------- > > Key: WSCOMMONS-559 > URL: https://issues.apache.org/jira/browse/WSCOMMONS-559 > Project: WS-Commons > Issue Type: Improvement > Components: XmlSchema > Affects Versions: XmlSchema 1.4.6 > Reporter: Chris Hubick > Fix For: XmlSchema 1.4.7 > > Attachments: xmlschema_attr_primitive_type.patch, > xmlschema_attr_root_type.patch > > > I found it rather difficult to use the XmlSchema library to determine which > element attributes from instance documents are derived from the "anyURI" > primitive type. > Some additional utility methods would make this substantially easier: > - XmlSchemaComplexType.getAttribute(QName) returns XmlSchemaAttribute > - XmlSchemaSimpleType.getRootTypeName() returns QName -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.