Hi,
I have reposted this due to the underwhelming response :(
 
Do people think that this is a good idea?
Is it available currently or should I file an RFE?
 
...
 
Is anyone out there?
 
 
Mike


From: Mike Skells [mailto:[EMAIL PROTECTED]
Sent: 08 September 2005 14:57
To: dev@xmlbeans.apache.org
Subject: representation of xs:group and xs:attributeGroup, and polymorphic classes

Hi,
 
I am generating a series of java classes based on schemas which make heavy use in groups and attribute groups
 
Is there any way to get the generated classes to marks and reuse this commonallity
It woudl seem to me that these would map to other interfaces
 
e.g.

<xs:complexType name="WorkflowRulesType">
  <xs:complexContent>
    <xs:extension base="local:WorkflowRules-interfaceType">
      <xs:sequence>
        <xs:group ref="local:workflow-content"/>
      </xs:sequence>
      <xs:attributeGroup ref="local:workflow-attributes"/>
    </xs:extension>
  </xs:complexContent>
</xs:complexType>

...

<xs:complexType name="WorkflowType">
  <xs:complexContent>
    <xs:extension base="local:Workflow-interfaceType">
      <xs:sequence>
        <xs:group ref="local:workflow-content"/>
      </xs:sequence>
      <xs:attributeGroup ref="local:workflow-attributes"/>
     </xs:extension>
  </xs:complexContent>
</xs:complexType>

 

I get a class

 
public interface WorkflowRulesType extends WorkflowRulesInterfaceType
and
public interface WorkflowType extends WorkflowInterfaceType
 
each with an identical set of methods that relate to the content
 
Wouldnt it be more logical to get
public interface WorkflowsRulesType extends WorkflowsRulesInterfaceType, WorkflowAttributes, WorkflowContent
public interface WorkflowsType extends WorkflowsRulesInterfaceType, WorkflowAttributes, WorkflowContent
 
Is there a way to get xmlbeans to generate the additional methods to aid the polymorphic behaviors
 
Mike

Reply via email to