You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jaxme-dev@ws.apache.org by ja...@ws.apache.org on 2004/09/02 10:52:52 UTC

[jira] Commented: (JAXME-12) simpleContent extension self reference

The following comment has been added to this issue:

     Author: Nacho G. Mac Dowell
    Created: Thu, 2 Sep 2004 1:52 AM
       Body:
Not able to reproduce on cvs head. Generated sources are:

public interface BodyType {
  public java.lang.String getHtmlTemplate();
  public void setHtmlTemplate(java.lang.String pHtmlTemplate);
  public java.lang.String getTextTemplate();
  public void setTextTemplate(java.lang.String pTextTemplate);
  public java.lang.String getValue();
  public void setValue(java.lang.String pValue);
}

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.test.com">
    <xs:element name="Body">
        <xs:complexType>
            <xs:simpleContent>
                <xs:extension base="xs:string">
                    <xs:attribute name="html-template" />
                    <xs:attribute name="text-template" />
                </xs:extension>
            </xs:simpleContent>
        </xs:complexType>
    </xs:element>
</xs:schema>


AND

package test.simple;
public interface BodyType {
  public java.lang.String getValue();
  public void setValue(java.lang.String pValue);
}

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.test.com">
    <xs:element name="Body">
        <xs:complexType>
            <xs:simpleContent>
                <xs:extension base="xs:string"></xs:extension>
            </xs:simpleContent>
            <xs:attribute name="html-template" />
            <xs:attribute name="text-template" />
        </xs:complexType>
    </xs:element>
</xs:schema>
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/JAXME-12?page=comments#action_38038

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/JAXME-12

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: JAXME-12
    Summary: simpleContent extension self reference
       Type: Bug

     Status: Open

    Project: JaxMe
 Components: 
             JaxMe Core
   Versions:
             current (nightly)

   Assignee: JaxMe Developers mailing list
   Reporter: Henrik Vendelbo

    Created: Fri, 7 Nov 2003 1:53 AM
    Updated: Thu, 2 Sep 2004 1:52 AM
Environment: Operating System: Other
Platform: Other

Description:
Given an XSD with the following element definition :

		<xs:element name="Body">
	        <xs:complexType>
	        <xs:simpleContent><xs:extension base="xs:string">
              <xs:attribute name="html-template"/>
              <xs:attribute name="text-template"/>
            </xs:extension></xs:simpleContent>
          	</xs:complexType>
		</xs:element>


The resulting BodyType definition is

  public interface BodyType {
    public String getHtmlTemplate();
  
    public void setHtmlTemplate(String pHtmlTemplate);
  
    public String getTextTemplate();
  
    public void setTextTemplate(String pTextTemplate);
  
    public TransmissionDataType.BodyType getValue();
  
    public void setValue(TransmissionDataType.BodyType pValue);
  
  }

The getValue/setValue type should be String, rather than it's own type

used jaxme jars compiled from todays CVS snapshot


---------------------------------------------------------------------
JIRA INFORMATION:
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: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org