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