[prev in list] [next in list] [prev in thread] [next in thread]
List: xmlbeans-dev
Subject: [jira] Commented: (XMLBEANS-253) .xsdconfig qname element should
From: "Radu Preotiuc-Pietro (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date: 2008-03-27 23:12:24
Message-ID: 489947098.1206659544747.JavaMail.jira () brutus
[Download RAW message or body]
[ https://issues.apache.org/jira/browse/XMLBEANS-253?page=com.atlassian.jira.plugi \
n.system.issuetabpanels:comment-tabpanel&focusedCommentId=12582833#action_12582833 ]
Radu Preotiuc-Pietro commented on XMLBEANS-253:
-----------------------------------------------
My thoughts on this issue:
I propose we add a new attribute to the <qname> configuration element, something like \
target="element | type | property" with the following meaning:
- "element" - only the document type corresponding to the global element with that \
qname gets its name changed, not the global type, if any
- "type" - only the global type with that qname has the name changed, not the global \
element, if any
- "property" - all methods corresponding to elements/attributes with that qname use \
the new name and global types and elements are not affected.
I am envisioning that multiple settings for the same qname would be allowed so that \
the default will be target="element & type" which would correspond to the current \
behavior.
I would also note that when target is set to "element", then if there is an inner \
class, its name will always be java_name_for_outer_type + "2" because in Java you \
can't have an inner class with the same name as one of its outer classes and also for \
backwards-compatibility.
> .xsdconfig qname element should allow specifying only element or only complexType
> ---------------------------------------------------------------------------------
>
> Key: XMLBEANS-253
> URL: https://issues.apache.org/jira/browse/XMLBEANS-253
> Project: XMLBeans
> Issue Type: Improvement
> Components: Binding
> Affects Versions: Version 2.1
> Environment: All
> Reporter: Lawrence Jones
> Assignee: Lawrence Jones
> Priority: Minor
> Fix For: TBD
>
> Attachments: test.wsdl, test.xsdconfig
>
>
> Currently the <qname> element in .xsdconfig files allows only the name and javaname \
> attributes to be specified. If you have a schema with a global type and a global \
> element with the same name and you try to map that name to a non-default javaname \
> using the <qname> element in a .xsdconfig file then you will get that one of them \
> maps to the javaname and one of them maps to javaname + "2" in order to avoid \
> collisions. Suggest that we update <qname> to allow a third attribute which \
> specifies whether this mapping applies to elements only, types only, or both with \
> default being both.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic