VirtualBox

Changeset 20844 in vbox


Ignore:
Timestamp:
Jun 23, 2009 2:53:10 PM (15 years ago)
Author:
vboxsync
Message:

SDK: teach jax-ws glue bindings proper inheritance (respect 'extends' attribute from XIDL)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/webservice/glue-jaxws.xsl

    r18887 r20844  
    829829        <xsl:otherwise>
    830830
     831          <xsl:variable name="extends" select="//interface[@name=$ifname]/@extends" />
     832          <xsl:choose>
     833            <xsl:when test="($extends = '$unknown') or ($extends = '$dispatched')">
     834              <xsl:value-of select="concat('public class ', $ifname, ' extends IUnknown {&#10;&#10;')" />
     835            </xsl:when>
     836            <xsl:when test="//interface[@name=$extends]">
     837              <xsl:value-of select="concat('public class ', $ifname, ' extends ', $extends, ' {&#10;&#10;')" />
     838            </xsl:when>
     839            <xsl:otherwise>
     840              <xsl:call-template name="fatalError">
     841                <xsl:with-param name="msg" select="concat('Interface generation: interface &quot;', $ifname, '&quot; has invalid &quot;extends&quot; value ', $extends, '.')" />
     842              </xsl:call-template>
     843            </xsl:otherwise>>
     844          </xsl:choose>
     845
    831846          <!-- interface (class) constructor -->
    832           <xsl:value-of select="concat('public class ', $ifname, ' extends IUnknown {&#10;&#10;')" />
    833847          <xsl:value-of select="concat('    public static ', $ifname, ' cast(IUnknown other) {&#10;')" />
    834848          <xsl:value-of select="concat('        return new ', $ifname,
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette