You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mirae-user@ws.apache.org by Björn Martin <Bj...@ptv.de> on 2006/08/23 18:27:57 UTC

Inheritance supported by JSR172?

Hi folks.

I'm not quite sure about whether JSR172 supports inheritance or not. So can
someone please tell me if the following type definition is valid?

  <complexType name="VO" abstract="true">
    <sequence>
      <element name="id" type="string" nillable="true"/>
    </sequence>
  </complexType>
  <complexType name="AuditedVO" abstract="true">
    <complexContent>
      <extension base="tns:VO">
        <sequence>
          <element name="createTime" type="dateTime" nillable="true"/>
          <element name="createUser" type="string" nillable="true"/>
          <element name="updateTime" type="dateTime" nillable="true"/>
          <element name="updateUser" type="string" nillable="true"/>
        </sequence>
      </extension>
    </complexContent>
  </complexType>

Basically it says that AutitedVO is derived from VO.

TIA for any hints!

Cheers, Bjoern