You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Takeshi Martinez (JIRA)" <xm...@xml.apache.org> on 2004/12/22 15:24:11 UTC
[jira] Created: (XMLBEANS-97) In xsdconfig namespace/prefix or suffix is ignored if qname@javaname specified
In xsdconfig namespace/prefix or suffix is ignored if qname@javaname specified
------------------------------------------------------------------------------
Key: XMLBEANS-97
URL: http://nagoya.apache.org/jira/browse/XMLBEANS-97
Project: XMLBeans
Type: Bug
Reporter: Takeshi Martinez
Priority: Trivial
If the xsdconfig qname element is used to create user preferred java type names, the resulting interface has an inner interface with the same name with 2 appended. eg.
xsdconfig file:
<xb:qname name="ns:SCHEMA_NAME" javaname="JavaName"/>
will give,
JavaName source file:
// This is the document
public interface JavaName extends org.apache.xmlbeans.XmlObject {
...
// This is the element
public interface JavaName2 extends org.apache.xmlbeans.XmlObject
{
...
I thought if I specified a prefix or suffix earlier, in the correct namespace element, eg:
xsdconfig file:
<xb:suffix>Xml</xb:suffix>
I should get,
JavaNameXml source file:
// This is the document
public interface JavaNameXml extends org.apache.xmlbeans.XmlObject {
...
// This is the element
public interface JavaName extends org.apache.xmlbeans.XmlObject
{
...
I don't, is that normal? Thanks alot.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[jira] Resolved: (XMLBEANS-97) In xsdconfig namespace/prefix or suffix is ignored if qname@javaname specified
Posted by "Jacob Danner (JIRA)" <xm...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XMLBEANS-97?page=history ]
Jacob Danner resolved XMLBEANS-97:
----------------------------------
Resolution: Won't Fix
This is the expected behavior. When you specify a javaName for a schemaName you set the name at that point. If you want a suffix or prefix added to the javaName you can either not set the javaName, or set the suffix or prefix explicity when setting the name.
> In xsdconfig namespace/prefix or suffix is ignored if qname@javaname specified
> ------------------------------------------------------------------------------
>
> Key: XMLBEANS-97
> URL: http://issues.apache.org/jira/browse/XMLBEANS-97
> Project: XMLBeans
> Type: Bug
> Reporter: Takeshi Martinez
> Assignee: Jacob Danner
> Priority: Trivial
>
> If the xsdconfig qname element is used to create user preferred java type names, the resulting interface has an inner interface with the same name with 2 appended. eg.
> xsdconfig file:
> <xb:qname name="ns:SCHEMA_NAME" javaname="JavaName"/>
> will give,
> JavaName source file:
> // This is the document
> public interface JavaName extends org.apache.xmlbeans.XmlObject {
> ...
> // This is the element
> public interface JavaName2 extends org.apache.xmlbeans.XmlObject
> {
> ...
> I thought if I specified a prefix or suffix earlier, in the correct namespace element, eg:
> xsdconfig file:
> <xb:suffix>Xml</xb:suffix>
> I should get,
> JavaNameXml source file:
> // This is the document
> public interface JavaNameXml extends org.apache.xmlbeans.XmlObject {
> ...
> // This is the element
> public interface JavaName extends org.apache.xmlbeans.XmlObject
> {
> ...
> I don't, is that normal? Thanks alot.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[jira] Closed: (XMLBEANS-97) In xsdconfig namespace/prefix or suffix is ignored if qname@javaname specified
Posted by "Jacob Danner (JIRA)" <xm...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XMLBEANS-97?page=history ]
Jacob Danner closed XMLBEANS-97:
--------------------------------
Closing based on comments above
> In xsdconfig namespace/prefix or suffix is ignored if qname@javaname specified
> ------------------------------------------------------------------------------
>
> Key: XMLBEANS-97
> URL: http://issues.apache.org/jira/browse/XMLBEANS-97
> Project: XMLBeans
> Type: Bug
> Reporter: Takeshi Martinez
> Assignee: Jacob Danner
> Priority: Trivial
>
> If the xsdconfig qname element is used to create user preferred java type names, the resulting interface has an inner interface with the same name with 2 appended. eg.
> xsdconfig file:
> <xb:qname name="ns:SCHEMA_NAME" javaname="JavaName"/>
> will give,
> JavaName source file:
> // This is the document
> public interface JavaName extends org.apache.xmlbeans.XmlObject {
> ...
> // This is the element
> public interface JavaName2 extends org.apache.xmlbeans.XmlObject
> {
> ...
> I thought if I specified a prefix or suffix earlier, in the correct namespace element, eg:
> xsdconfig file:
> <xb:suffix>Xml</xb:suffix>
> I should get,
> JavaNameXml source file:
> // This is the document
> public interface JavaNameXml extends org.apache.xmlbeans.XmlObject {
> ...
> // This is the element
> public interface JavaName extends org.apache.xmlbeans.XmlObject
> {
> ...
> I don't, is that normal? Thanks alot.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org