- Timestamp:
- Apr 11, 2013 1:07:09 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 84944
- Location:
- trunk/src/VBox/Main
- Files:
-
- 11 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/glue/glue-java.xsl
r45195 r45483 41 41 select="//interface[@wsmap='suppress']" /> 42 42 43 <xsl:include href="../ webservice/websrv-shared.inc.xsl" />43 <xsl:include href="../idl/typemap-shared.inc.xsl" /> 44 44 45 45 <xsl:strip-space elements="*"/> … … 48 48 <xsl:param name="name" /> 49 49 <xsl:text>/* 50 * Copyright (C) 2010-201 2Oracle Corporation50 * Copyright (C) 2010-2013 Oracle Corporation 51 51 * 52 52 * This file is part of the VirtualBox SDK, as available from … … 644 644 645 645 <xsl:if test="not($needlist) or not($skiplisttype='yes')"> 646 <!-- look up Java type from IDL type from table array in websrv-shared.inc.xsl -->646 <!-- look up Java type from IDL type from table array in typemap-shared.inc.xsl --> 647 647 <xsl:variable name="javatypefield" select="exsl:node-set($G_aSharedTypes)/type[@idlname=$type]/@javaname" /> 648 648 -
trunk/src/VBox/Main/idl/comimpl.xsl
r43103 r45483 14 14 Further extension to other interfaces is possible and anticipated. 15 15 16 Copyright (C) 2010-201 2Oracle Corporation16 Copyright (C) 2010-2013 Oracle Corporation 17 17 18 18 This file is part of VirtualBox Open Source Edition (OSE), as … … 31 31 indent="no"/> 32 32 33 <xsl:include href=" ../webservice/websrv-shared.inc.xsl" />33 <xsl:include href="typemap-shared.inc.xsl" /> 34 34 35 35 <!-- $G_kind contains what kind of COM class implementation we generate --> … … 47 47 48 48 /* 49 * Copyright (C) 2010-201 2Oracle Corporation49 * Copyright (C) 2010-2013 Oracle Corporation 50 50 * 51 51 * This file is part of VirtualBox Open Source Edition (OSE), as -
trunk/src/VBox/Main/idl/typemap-shared.inc.xsl
r45482 r45483 1 1 <!-- 2 websrv-shared.inc.xsl: 3 this gets included from the other websrv-*.xsl XSLT stylesheets 4 so we can share some definitions that must be the same for 5 all of them (like method prefixes/suffices). 6 See webservice/Makefile.kmk for an overview of all the things 7 generated for the webservice. 8 9 Copyright (C) 2006-2012 Oracle Corporation 2 typemap-shared.inc.xsl: 3 this gets included from other XSLT stylesheets including those 4 for the webservice, so we can share some definitions that must 5 be the same for all of them (like method prefixes/suffices). 6 7 Copyright (C) 2006-2013 Oracle Corporation 10 8 11 9 This file is part of VirtualBox Open Source Edition (OSE), as … … 27 25 xmlns:vbox="http://www.virtualbox.org/"> 28 26 29 <xsl:variable name="G_xsltIncludeFilename" select="'websrv-shared.inc.xsl'" /> 27 <xsl:variable name="G_xsltIncludeFilename" select="'typemap-shared.inc.xsl'" /> 28 29 <xsl:variable name="G_lowerCase" select="'abcdefghijklmnopqrstuvwxyz'" /> 30 <xsl:variable name="G_upperCase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'" /> 30 31 31 32 <!-- target namespace; this must match the xmlns:vbox in stylesheet opening tags! --> … … 162 163 163 164 <xsl:variable name="G_aSharedTypes"> 164 <type idlname="octet" xmlname="unsignedByte" cname="unsigned char" gluename="BYTE" javaname="byte" />165 <type idlname="boolean" xmlname="boolean" cname="bool" gluename="BOOL" javaname="Boolean" />166 <type idlname="short" xmlname="short" cname="short" gluename="SHORT" javaname="Short" />167 <type idlname="unsigned short" xmlname="unsignedShort" cname="unsigned short" gluename="USHORT" javaname="Integer" />168 <type idlname="long" xmlname="int" cname="int" gluename="LONG" javaname="Integer" />169 <type idlname="unsigned long" xmlname="unsignedInt" cname="unsigned int" gluename="ULONG" javaname="Long" />170 <type idlname="long long" xmlname="long" cname="LONG64" gluename="LONG64" javaname="Long" />171 <type idlname="unsigned long long" xmlname="unsignedLong" cname="ULONG64" gluename="ULONG64" javaname="BigInteger" />172 <type idlname="double" xmlname="double" cname="double" gluename=" "javaname="Double" />173 <type idlname="float" xmlname="float" cname="float" gluename=" "javaname="Float" />174 <type idlname="wstring" xmlname="string" cname="std::string" gluename=" "javaname="String" />175 <type idlname="uuid" xmlname="string" cname="std::string" gluename=" "javaname="String" />176 <type idlname="result" xmlname="unsignedInt" cname="unsigned int" gluename="HRESULT" javaname="Long" />165 <type idlname="octet" xmlname="unsignedByte" cname="unsigned char" gluename="BYTE" gluefmt="%RU8" javaname="byte" /> 166 <type idlname="boolean" xmlname="boolean" cname="bool" gluename="BOOL" gluefmt="%RTbool" javaname="Boolean" /> 167 <type idlname="short" xmlname="short" cname="short" gluename="SHORT" gluefmt="%RI16" javaname="Short" /> 168 <type idlname="unsigned short" xmlname="unsignedShort" cname="unsigned short" gluename="USHORT" gluefmt="%RU16" javaname="Integer" /> 169 <type idlname="long" xmlname="int" cname="int" gluename="LONG" gluefmt="%RI32" javaname="Integer" /> 170 <type idlname="unsigned long" xmlname="unsignedInt" cname="unsigned int" gluename="ULONG" gluefmt="%RU32" javaname="Long" /> 171 <type idlname="long long" xmlname="long" cname="LONG64" gluename="LONG64" gluefmt="%RI64" javaname="Long" /> 172 <type idlname="unsigned long long" xmlname="unsignedLong" cname="ULONG64" gluename="ULONG64" gluefmt="%RU64" javaname="BigInteger" /> 173 <type idlname="double" xmlname="double" cname="double" gluename="DOUBLE" gluefmt="%#RX64" javaname="Double" /> 174 <type idlname="float" xmlname="float" cname="float" gluename="FLOAT" gluefmt="%#RX32" javaname="Float" /> 175 <type idlname="wstring" xmlname="string" cname="std::string" gluename="BSTR" gluefmt="%ls" javaname="String" /> 176 <type idlname="uuid" xmlname="string" cname="std::string" gluename="BSTR" gluefmt="%ls" javaname="String" /> 177 <type idlname="result" xmlname="unsignedInt" cname="unsigned int" gluename="HRESULT" gluefmt="%Rhrc" javaname="Long" /> 177 178 </xsl:variable> 178 179 … … 223 224 <xsl:value-of select=" 224 225 concat( 225 translate(substring($str,1,1), 'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'),226 translate(substring($str,1,1),$G_upperCase,$G_lowerCase), 226 227 substring($str,2) 227 228 ) … … 240 241 <xsl:when test="$strlen>1"> 241 242 <xsl:choose> 242 <xsl:when test="contains( 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',substring($str,1,1))243 <xsl:when test="contains($G_upperCase,substring($str,1,1)) 243 244 and 244 contains( 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',substring($str,2,1))">245 contains($G_upperCase,substring($str,2,1))"> 245 246 <xsl:variable name="cdr"> 246 247 <xsl:call-template name="uncapitalize2"> … … 251 252 concat( 252 253 translate(substring($str,1,1), 253 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',254 'abcdefghijklmnopqrstuvwxyz'),254 $G_upperCase, 255 $G_lowerCase), 255 256 $cdr 256 257 ) … … 266 267 <xsl:value-of select=" 267 268 translate($str, 268 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',269 'abcdefghijklmnopqrstuvwxyz')269 $G_upperCase, 270 $G_lowerCase) 270 271 "/> 271 272 </xsl:when> … … 282 283 <xsl:value-of select=" 283 284 concat( 284 translate(substring($str,1,1), 'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ'),285 translate(substring($str,1,1),$G_lowerCase,$G_upperCase), 285 286 substring($str,2) 286 287 ) -
trunk/src/VBox/Main/webservice/Makefile.kmk
r45075 r45483 7 7 8 8 # 9 # Copyright (C) 2007-201 2Oracle Corporation9 # Copyright (C) 2007-2013 Oracle Corporation 10 10 # 11 11 # This file is part of VirtualBox Open Source Edition (OSE), as … … 151 151 # The webservice location 152 152 VBOX_PATH_WEBSERVICE := $(PATH_SUB_CURRENT) 153 154 # The IDL subdirectory (contains some XSLT files) 155 VBOX_PATH_IDL := $(abspath $(PATH_SUB_CURRENT)/../idl) 153 156 154 157 # If this is set, all webservice files are considered out-of-date every time … … 560 563 561 564 # generate WSDL from main XIDL file 562 $(VBOXWEB_WSDL): $(VBOXWEB_IDL_SRC) $(VBOX_PATH_WEBSERVICE)/websrv-wsdl.xsl $(VBOX_PATH_ WEBSERVICE)/websrv-shared.inc.xsl $(RECOMPILE_ON_MAKEFILE_CURRENT) ## @todo | $$(dir $$@)565 $(VBOXWEB_WSDL): $(VBOXWEB_IDL_SRC) $(VBOX_PATH_WEBSERVICE)/websrv-wsdl.xsl $(VBOX_PATH_IDL)/typemap-shared.inc.xsl $(RECOMPILE_ON_MAKEFILE_CURRENT) ## @todo | $$(dir $$@) 563 566 $(call MSG_GENERATE,,$@,$(VBOXWEB_IDL_SRC) using websrv-wsdl.xsl) 564 567 $(QUIET)$(RM) -f -- $@ … … 566 569 $(QUIET)$(VBOX_XSLTPROC) $(VBOXWEB_XSLTPROC_VERBOSE) -o $@ $(VBOX_PATH_WEBSERVICE)/websrv-wsdl.xsl $< 567 570 568 $(VBOXWEBSERVICE_WSDL): $(VBOXWEB_IDL_SRC) $(VBOX_PATH_WEBSERVICE)/websrv-wsdl-service.xsl $(VBOX_PATH_ WEBSERVICE)/websrv-shared.inc.xsl $(RECOMPILE_ON_MAKEFILE_CURRENT) ## @todo | $$(dir $$@)571 $(VBOXWEBSERVICE_WSDL): $(VBOXWEB_IDL_SRC) $(VBOX_PATH_WEBSERVICE)/websrv-wsdl-service.xsl $(VBOX_PATH_IDL)/typemap-shared.inc.xsl $(RECOMPILE_ON_MAKEFILE_CURRENT) ## @todo | $$(dir $$@) 569 572 $(call MSG_GENERATE,,$@,$(VBOXWEB_IDL_SRC) using websrv-wsdl-service.xsl) 570 573 $(QUIET)$(RM) -f -- $@ … … 606 609 607 610 # generate typemap.dat (used by wsdl2h) from main XIDL file 608 $(VBOXWEB_TYPEMAP): $(VBOXWEB_IDL_SRC) $(VBOX_PATH_WEBSERVICE)/websrv-typemap.xsl $(VBOX_PATH_ WEBSERVICE)/websrv-shared.inc.xsl $(RECOMPILE_ON_MAKEFILE_CURRENT) | $$(dir $$@)611 $(VBOXWEB_TYPEMAP): $(VBOXWEB_IDL_SRC) $(VBOX_PATH_WEBSERVICE)/websrv-typemap.xsl $(VBOX_PATH_IDL)/typemap-shared.inc.xsl $(RECOMPILE_ON_MAKEFILE_CURRENT) | $$(dir $$@) 609 612 $(call MSG_GENERATE,,$@,$(VBOXWEB_IDL_SRC) using websrv-typemap.xsl) 610 613 $(QUIET)$(RM) -f -- $@ … … 612 615 613 616 # generate gsoap pseudo-C header file from that WSDL; once via XSLT... 614 $(VBOXWEB_GSOAPH_FROM_XSLT): $(VBOXWEB_WSDL) $(VBOX_PATH_WEBSERVICE)/websrv-wsdl2gsoapH.xsl $(VBOX_PATH_ WEBSERVICE)/websrv-shared.inc.xsl $(RECOMPILE_ON_MAKEFILE_CURRENT) | $$(dir $$@)617 $(VBOXWEB_GSOAPH_FROM_XSLT): $(VBOXWEB_WSDL) $(VBOX_PATH_WEBSERVICE)/websrv-wsdl2gsoapH.xsl $(VBOX_PATH_IDL)/typemap-shared.inc.xsl $(RECOMPILE_ON_MAKEFILE_CURRENT) | $$(dir $$@) 615 618 $(call MSG_GENERATE,,$@,$(VBOXWEB_WSDL) using websrv-wsdl2gsoapH.xsl) 616 619 $(QUIET)$(RM) -f -- $@ … … 618 621 619 622 VBOX_NSMAP = $(VBOXWEB_OUT_DIR)/vboxwebsrv.nsmap 620 $(VBOX_NSMAP): $(VBOXWEB_IDL_SRC) $(VBOX_PATH_WEBSERVICE)/websrv-nsmap.xsl $(VBOX_PATH_ WEBSERVICE)/websrv-shared.inc.xsl $(RECOMPILE_ON_MAKEFILE_CURRENT) | $$(dir $$@)623 $(VBOX_NSMAP): $(VBOXWEB_IDL_SRC) $(VBOX_PATH_WEBSERVICE)/websrv-nsmap.xsl $(VBOX_PATH_IDL)/typemap-shared.inc.xsl $(RECOMPILE_ON_MAKEFILE_CURRENT) | $$(dir $$@) 621 624 $(call MSG_GENERATE,,$@,$(VBOXWEB_IDL_SRC) using websrv-nsmap.xsl) 622 625 $(QUIET)$(RM) -f -- $@ … … 711 714 712 715 # generate method maps in server: map wsdl operations to com/xpcom method calls 713 $(VBOXWEB_OUT_DIR)/methodmaps.cpp: $(VBOXWEB_IDL_SRC) $(VBOX_PATH_WEBSERVICE)/websrv-cpp.xsl $(VBOX_PATH_ WEBSERVICE)/websrv-shared.inc.xsl $(RECOMPILE_ON_MAKEFILE_CURRENT) | $$(dir $$@)716 $(VBOXWEB_OUT_DIR)/methodmaps.cpp: $(VBOXWEB_IDL_SRC) $(VBOX_PATH_WEBSERVICE)/websrv-cpp.xsl $(VBOX_PATH_IDL)/typemap-shared.inc.xsl $(RECOMPILE_ON_MAKEFILE_CURRENT) | $$(dir $$@) 714 717 $(call MSG_GENERATE,,$@,$(VBOXWEB_IDL_SRC) using websrv-cpp.xsl) 715 718 $(QUIET)$(VBOX_XSLTPROC) -o $@ $(VBOX_PATH_WEBSERVICE)/websrv-cpp.xsl $< -
trunk/src/VBox/Main/webservice/websrv-cpp.xsl
r44414 r45483 40 40 <xsl:variable name="G_xsltFilename" select="'websrv-cpp.xsl'" /> 41 41 42 <xsl:include href=" websrv-shared.inc.xsl" />42 <xsl:include href="../idl/typemap-shared.inc.xsl" /> 43 43 44 44 <!-- collect all interfaces with "wsmap='suppress'" in a global variable for … … 361 361 <xsl:param name="inptr" /> <!-- whether to add INPTR to BSTR (Dmitry template magic) --> 362 362 363 <!-- look up C++ glue type from IDL type from table array in websrv-shared.inc.xsl -->363 <!-- look up C++ glue type from IDL type from table array in typemap-shared.inc.xsl --> 364 364 <xsl:variable name="gluetypefield" select="exsl:node-set($G_aSharedTypes)/type[@idlname=$type]/@gluename" /> 365 365 … … 985 985 <xsl:value-of select="'{'" /> 986 986 <xsl:call-template name="emitNewlineIndent8" /> 987 <!-- look up C++ glue type from IDL type from table array in websrv-shared.inc.xsl -->987 <!-- look up C++ glue type from IDL type from table array in typemap-shared.inc.xsl --> 988 988 <xsl:variable name="gluetypefield" select="exsl:node-set($G_aSharedTypes)/type[@idlname=$type]/@gluename" /> 989 989 <xsl:choose> -
trunk/src/VBox/Main/webservice/websrv-nsmap.xsl
r44528 r45483 10 10 generated for the webservice. 11 11 12 Copyright (C) 2006-201 2Oracle Corporation12 Copyright (C) 2006-2013 Oracle Corporation 13 13 14 14 This file is part of VirtualBox Open Source Edition (OSE), as … … 36 36 <xsl:variable name="G_xsltFilename" select="'websrv-typemap.xsl'" /> 37 37 38 <xsl:include href=" websrv-shared.inc.xsl" />38 <xsl:include href="../idl/typemap-shared.inc.xsl" /> 39 39 40 40 <!-- - - - - - - - - - - - - - - - - - - - - - - -
trunk/src/VBox/Main/webservice/websrv-php.xsl
r43546 r45483 12 12 Contributed by James Lucas (mjlucas at eng.uts.edu.au). 13 13 14 Copyright (C) 2008-201 2Oracle Corporation14 Copyright (C) 2008-2013 Oracle Corporation 15 15 16 16 This file is part of VirtualBox Open Source Edition (OSE), as … … 30 30 indent="no"/> 31 31 32 <xsl:include href=" websrv-shared.inc.xsl" />32 <xsl:include href="../idl/typemap-shared.inc.xsl" /> 33 33 34 34 <xsl:variable name="G_setSuppressedInterfaces" … … 361 361 362 362 /* 363 * Copyright (C) 2008-201 2Oracle Corporation363 * Copyright (C) 2008-2013 Oracle Corporation 364 364 * 365 365 * This file is part of a free software library; you can redistribute -
trunk/src/VBox/Main/webservice/websrv-python.xsl
r44528 r45483 10 10 web service API. Depends on WSDL file for actual SOAP bindings. 11 11 12 Copyright (C) 2008-201 2Oracle Corporation12 Copyright (C) 2008-2013 Oracle Corporation 13 13 14 14 This file is part of VirtualBox Open Source Edition (OSE), as … … 28 28 indent="no"/> 29 29 30 <xsl:include href=" websrv-shared.inc.xsl" />30 <xsl:include href="../idl/typemap-shared.inc.xsl" /> 31 31 32 32 <xsl:variable name="G_setSuppressedInterfaces" -
trunk/src/VBox/Main/webservice/websrv-typemap.xsl
r44528 r45483 9 9 generated for the webservice. 10 10 11 Copyright (C) 2006-201 2Oracle Corporation11 Copyright (C) 2006-2013 Oracle Corporation 12 12 13 13 This file is part of VirtualBox Open Source Edition (OSE), as … … 35 35 <xsl:variable name="G_xsltFilename" select="'websrv-typemap.xsl'" /> 36 36 37 <xsl:include href=" websrv-shared.inc.xsl" />37 <xsl:include href="../idl/typemap-shared.inc.xsl" /> 38 38 39 39 <!-- - - - - - - - - - - - - - - - - - - - - - - -
trunk/src/VBox/Main/webservice/websrv-wsdl-service.xsl
r44528 r45483 10 10 generated for the webservice. 11 11 12 Copyright (C) 2006-201 2Oracle Corporation12 Copyright (C) 2006-2013 Oracle Corporation 13 13 14 14 This file is part of VirtualBox Open Source Edition (OSE), as … … 46 46 <xsl:variable name="G_xsltFilename" select="'websrv-wsdl-service.xsl'" /> 47 47 48 <xsl:include href=" websrv-shared.inc.xsl" />48 <xsl:include href="../idl/typemap-shared.inc.xsl" /> 49 49 50 50 <!-- collect all interfaces with "wsmap='suppress'" in a global variable for -
trunk/src/VBox/Main/webservice/websrv-wsdl.xsl
r44528 r45483 10 10 generated for the webservice. 11 11 12 Copyright (C) 2006-201 2Oracle Corporation12 Copyright (C) 2006-2013 Oracle Corporation 13 13 14 14 This file is part of VirtualBox Open Source Edition (OSE), as … … 119 119 <xsl:variable name="G_xsltFilename" select="'websrv-wsdl.xsl'" /> 120 120 121 <xsl:include href=" websrv-shared.inc.xsl" />121 <xsl:include href="../idl/typemap-shared.inc.xsl" /> 122 122 123 123 <!-- collect all interfaces with "wsmap='suppress'" in a global variable for … … 148 148 <xsl:param name="type" /> 149 149 <xsl:call-template name="debugMsg"><xsl:with-param name="msg" select="concat('......emitConvertedType: type="', $type, '"')" /></xsl:call-template> 150 <!-- look up XML Schema type from IDL type from table array in websrv-shared.inc.xsl -->150 <!-- look up XML Schema type from IDL type from table array in typemap-shared.inc.xsl --> 151 151 <xsl:variable name="xmltypefield" select="exsl:node-set($G_aSharedTypes)/type[@idlname=$type]/@xmlname" /> 152 152 <xsl:choose> -
trunk/src/VBox/Main/webservice/websrv-wsdl2gsoapH.xsl
r44414 r45483 44 44 <xsl:variable name="G_xsltFilename" select="'websrv-wsdl2gsoapH.xsl'" /> 45 45 46 <xsl:include href=" websrv-shared.inc.xsl" />46 <xsl:include href="../idl/typemap-shared.inc.xsl" /> 47 47 48 48 <!-- collect all interfaces with "wsmap='suppress'" in a global variable for
Note:
See TracChangeset
for help on using the changeset viewer.