home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2003 October / INTERNET108.ISO / pc / software / windows / building / xmlspy / xmlspyentcomplete5.exe / Data1.cab / _3F2598F4F7DE4DD382EF87049F29C6BB < prev    next >
Encoding:
Text File  |  2003-05-12  |  6.3 KB  |  207 lines

  1. [
  2. '-----------------------------------------------------------
  3. ' C# XML Project Template
  4. '
  5. ' Copyright (C) 2002-2003 Altova GmbH - The XMLSPY Company
  6. ' All rights reserved.
  7. '
  8. ' XMLSPY 5 Enterprise Edition generates C# classes
  9. ' based on this template.
  10. ' Refer to the XMLSPY Documentation for further details.
  11. '
  12. ' http://www.altova.com/xmlspy
  13. '-----------------------------------------------------------
  14.  
  15. map type "boolean"                to "SchemaBoolean"
  16.  
  17. map type "byte"                    to "SchemaInt"
  18. map type "unsignedByte"            to "SchemaInt"
  19. map type "short"                to "SchemaInt"
  20. map type "unsignedShort"        to "SchemaInt"
  21. map type "int"                    to "SchemaInt"
  22. map type "unsignedInt"            to "SchemaInt"
  23. map type "long"                    to "SchemaLong"
  24. map type "unsignedLong"            to "SchemaLong"
  25.  
  26. map type "integer"                to "SchemaLong"
  27. map type "nonPositiveInteger"    to "SchemaLong"
  28. map type "negativeInteger"        to "SchemaLong"
  29. map type "positiveInteger"        to "SchemaLong"
  30. map type "nonNegativeInteger"    to "SchemaLong"
  31.  
  32. map type "decimal"                to "SchemaDecimal"
  33. map type "float"                to "SchemaDecimal"
  34. map type "double"                to "SchemaDecimal"
  35.  
  36. map type "duration"                to "SchemaString"
  37. map type "gYear"                to "SchemaString"
  38. map type "gDay"                    to "SchemaString"
  39. map type "gMonth"                to "SchemaString"
  40. map type "gYearMonth"            to "SchemaString"
  41. map type "gMonthDay"            to "SchemaString"
  42. map type "date"                    to "SchemaString"
  43. map type "time"                    to "SchemaString"
  44. map type "dateTime"                to "SchemaDateTime"
  45.  
  46. map type "string"                to "SchemaString"
  47. map type "hexBinary"            to "SchemaString"
  48. map type "base64Binary"            to "SchemaString"
  49. map type "anyURI"                to "SchemaString"
  50. map type "QName"                to "SchemaString"
  51. map type "NOTATION"                to "SchemaString"
  52. map type "normalizedString"        to "SchemaString"
  53. map type "token"                to "SchemaString"
  54. map type "language"                to "SchemaString"
  55. map type "IDREF"                to "SchemaString"
  56. map type "ENTITY"                to "SchemaString"
  57. map type "NMTOKEN"                to "SchemaString"
  58. map type "Name"                    to "SchemaString"
  59. map type "NCName"                to "SchemaString"
  60. map type "ID"                    to "SchemaString"
  61. map type "IDREFS"                to "SchemaString"
  62. map type "ENTITIES"                to "SchemaString"
  63. map type "NMTOKENS"                to "SchemaString"
  64.  
  65. map type "anySimpleType"        to "SchemaString"
  66.  
  67. default "ValidFirstCharSet"            is "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
  68. default "ValidCharSet"                is "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_0123456789"
  69. default "InvalidCharReplacement"    is "_"
  70. default "AnonTypePrefix"            is ""
  71. default "AnonTypeSuffix"            is "Type"
  72. default "ClassNamePrefix"            is ""
  73. default "ClassNameSuffix"            is ""
  74. default "FallbackName"                is "Name"
  75.  
  76. reserve "abstract"
  77. reserve "as"
  78. reserve "base"
  79. reserve "bool"
  80. reserve "break"
  81. reserve "byte"
  82. reserve "case"
  83. reserve "catch"
  84. reserve "char"
  85. reserve "checked"
  86. reserve "class"
  87. reserve "const"
  88. reserve "continue"
  89. reserve "decimal"
  90. reserve "default"
  91. reserve "delegate"
  92. reserve "do"
  93. reserve "double"
  94. reserve "else"
  95. reserve "enum"
  96. reserve "event"
  97. reserve "explicit"
  98. reserve "extern"
  99. reserve "false"
  100. reserve "finally"
  101. reserve "fixed"
  102. reserve "float"
  103. reserve "for"
  104. reserve "foreach"
  105. reserve "goto"
  106. reserve "if"
  107. reserve "implicit"
  108. reserve "in"
  109. reserve "int"
  110. reserve "interface"
  111. reserve "internal"
  112. reserve "is"
  113. reserve "lock"
  114. reserve "long"
  115. reserve "namespace"
  116. reserve "new"
  117. reserve "null"
  118. reserve "object"
  119. reserve "operator"
  120. reserve "out"
  121. reserve "override"
  122. reserve "params"
  123. reserve "private"
  124. reserve "protected"
  125. reserve "public"
  126. reserve "readonly"
  127. reserve "ref"
  128. reserve "return"
  129. reserve "sbyte"
  130. reserve "sealed"
  131. reserve "short"
  132. reserve "sizeof"
  133. reserve "stackalloc"
  134. reserve "static"
  135. reserve "string"
  136. reserve "struct"
  137. reserve "switch"
  138. reserve "this"
  139. reserve "throw"
  140. reserve "true"
  141. reserve "try"
  142. reserve "typeof"
  143. reserve "uint"
  144. reserve "ulong"
  145. reserve "unchecked"
  146. reserve "unsafe"
  147. reserve "ushort"
  148. reserve "using"
  149. reserve "virtual"
  150. reserve "void"
  151. reserve "volatile"
  152. reserve "while"
  153.  
  154. reserve "Type"
  155. reserve "NodeType"
  156.  
  157. $QualifiedFilename = ""
  158. $QualifiedNamespace = ""
  159. $QualifiedBase = ""
  160. $QualifiedType = ""
  161. $QualifiedValueType = ""
  162. $BasePath = ""
  163. $IsQualified = ""
  164.  
  165. '-----------------------------------------------------------
  166. ' Test Project (C#)
  167. '-----------------------------------------------------------
  168. $BasePath = $outputpath & "/" & $module & "Test/"
  169. create $BasePath & $module & "Test.cs"        : include "cs/ModuleTest/ModuleTest.cs"        : close
  170. create $BasePath & $module & "Test.csproj"    : include "cs/ModuleTest/ModuleTest.csproj"    : close
  171. create $BasePath & $module & "Test.sln"        : include "cs/ModuleTest/ModuleTest.sln"    : close
  172. create $BasePath & "AssemblyInfo.cs"        : include "cs/ModuleTest/AssemblyInfo.cs"    : close
  173.  
  174. '-----------------------------------------------------------
  175. ' Wrapper Library
  176. '-----------------------------------------------------------
  177. $BasePath = $outputpath & "/" & $module & "/"
  178. create $BasePath & $module & ".csproj"    : include "cs/Module/Module.csproj"        : close
  179. create $BasePath & $module & ".sln"        : include "cs/Module/Module.sln"        : close
  180. create $BasePath & $module & "Doc.cs"    : include "cs/Module/ModuleDoc.cs"        : close
  181. create $BasePath & "AssemblyInfo.cs"    : include "cs/Module/AssemblyInfo.cs"    : close
  182.  
  183. foreach $namespace in $namespaces
  184.     foreach $class in $namespace.Classes
  185.         if $class.NamespacePrefix = ""
  186.             $QualifiedFilename  = $class.Name & ".cs"
  187.             $QualifiedNamespace = $module
  188.         else
  189.             $QualifiedFilename  = $class.NamespacePrefix & "_" & $class.Name & ".cs"
  190.             $QualifiedNamespace = $module & "." & $class.NamespacePrefix
  191.         endif
  192.         if not $class.IsInternal
  193.             create $BasePath & $QualifiedFilename : include "cs/Module/Module.cs" : close
  194.         endif
  195.     next
  196. next
  197.  
  198. '-----------------------------------------------------------
  199. ' Altova XML Library
  200. '-----------------------------------------------------------
  201. create $outputpath & "/Altova/Document.cs"        : include "cs/Altova/Document.cs"        : close
  202. create $outputpath & "/Altova/Node.cs"            : include "cs/Altova/Node.cs"            : close
  203. create $outputpath & "/Altova/SchemaTypes.cs"    : include "cs/Altova/SchemaTypes.cs"    : close
  204. create $outputpath & "/Altova/AssemblyInfo.cs"    : include "cs/Altova/AssemblyInfo.cs"    : close
  205. create $outputpath & "/Altova/Altova.csproj"    : include "cs/Altova/Altova.csproj"        : close
  206. create $outputpath & "/Altova/Altova.sln"        : include "cs/Altova/Altova.sln"        : close
  207. ]