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

  1. [
  2. '-----------------------------------------------------------
  3. ' Java 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 Java 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 "SchemaByte"
  18. map type "unsignedByte"            to "SchemaShort"
  19. map type "short"                to "SchemaShort"
  20. map type "unsignedShort"        to "SchemaInt"
  21. map type "int"                    to "SchemaInt"
  22. map type "unsignedInt"            to "SchemaLong"
  23. map type "long"                    to "SchemaLong"
  24. map type "unsignedLong"            to "SchemaInteger"
  25.  
  26. map type "integer"                to "SchemaInteger"
  27. map type "nonPositiveInteger"    to "SchemaInteger"
  28. map type "negativeInteger"        to "SchemaInteger"
  29. map type "positiveInteger"        to "SchemaInteger"
  30. map type "nonNegativeInteger"    to "SchemaInteger"
  31.  
  32. map type "float"                to "SchemaFloat"
  33. map type "double"                to "SchemaDouble"
  34. map type "decimal"                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 "anyURI"                to "SchemaString"
  47. map type "QName"                to "SchemaString"
  48. map type "NOTATION"                to "SchemaString"
  49. map type "string"                to "SchemaString"
  50. map type "normalizedString"        to "SchemaNormalizedString"
  51. map type "token"                to "SchemaToken"
  52. map type "language"                to "SchemaLanguage"
  53. map type "Name"                    to "SchemaName"
  54. map type "NMTOKEN"                to "SchemaNMToken"
  55. map type "NMTOKENS"                to "SchemaNMToken"
  56. map type "NCName"                to "SchemaNCName"
  57. map type "ID"                    to "SchemaID"
  58. map type "IDREF"                to "SchemaIDRef"
  59. map type "IDREFS"                to "SchemaIDRef"
  60. map type "ENTITY"                to "SchemaEntity"
  61. map type "ENTITIES"                to "SchemaEntity"
  62.  
  63. map type "hexBinary"            to "SchemaString"
  64. map type "base64Binary"            to "SchemaString"
  65.  
  66. map type "anySimpleType"        to "SchemaString"
  67.  
  68. default "ValidFirstCharSet"            is "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
  69. default "ValidCharSet"                is "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_0123456789"
  70. default "InvalidCharReplacement"    is "_"
  71. default "AnonTypePrefix"            is ""
  72. default "AnonTypeSuffix"            is "Type"
  73. default "ClassNamePrefix"            is ""
  74. default "ClassNameSuffix"            is ""
  75. default "FallbackName"                is "Name"
  76.  
  77. reserve "abstract"
  78. reserve "boolean"
  79. reserve "break"
  80. reserve "byte"
  81. reserve "case"
  82. reserve "catch"
  83. reserve "char"
  84. reserve "class"
  85. reserve "const"
  86. reserve "continue"
  87. reserve "default"
  88. reserve "do"
  89. reserve "double"
  90. reserve "else"
  91. reserve "extends"
  92. reserve "false"
  93. reserve "final"
  94. reserve "finally"
  95. reserve "float"
  96. reserve "for"
  97. reserve "goto"
  98. reserve "if"
  99. reserve "implements"
  100. reserve "import"
  101. reserve "instanceof"
  102. reserve "int"
  103. reserve "interface"
  104. reserve "long"
  105. reserve "native"
  106. reserve "new"
  107. reserve "null"
  108. reserve "package"
  109. reserve "private"
  110. reserve "protected"
  111. reserve "public"
  112. reserve "return"
  113. reserve "short"
  114. reserve "static"
  115. reserve "strictfp"
  116. reserve "super"
  117. reserve "switch"
  118. reserve "synchronized"
  119. reserve "this"
  120. reserve "throw"
  121. reserve "throws"
  122. reserve "transient"
  123. reserve "true"
  124. reserve "try"
  125. reserve "void"
  126. reserve "volatile"
  127. reserve "while"
  128.  
  129. $JavaPackageName = "com.schema"
  130. $JavaPackageDir = "com/schema"
  131. $QualifiedBase = ""
  132. $QualifiedType = ""
  133. $QualifiedValueType = ""
  134. $BasePath = ""
  135. $IsQualified = ""
  136.  
  137. '-----------------------------------------------------------
  138. ' Test Class
  139. '-----------------------------------------------------------
  140. $BasePath = $outputpath & "/" & $JavaPackageDir & "/"
  141. create $BasePath & $module & "Test.java"            : include "java/ModuleTest.java" : close
  142. create $outputpath & "/Build" & $module & ".xml"    : include "java/BuildModule.xml" : close
  143. create $outputpath & "/" & $module & ".jpx"            : include "java/Module.jpx"      : close
  144.  
  145. '-----------------------------------------------------------
  146. ' Wrapper Library
  147. '-----------------------------------------------------------
  148. create $BasePath & $module & "Doc.java"    : include "java/ModuleDoc.java"    : close
  149. foreach $class in $classes        
  150.     $FullPackageDir = ""
  151.     $FullPackageName = ""
  152.  
  153.     if $class.NamespacePrefix = ""
  154.         $FullPackageDir  = $JavaPackageDir
  155.         $FullPackageName = $JavaPackageName
  156.     else            
  157.         $FullPackageDir  = $JavaPackageDir  & "/" & $class.NamespacePrefix
  158.         $FullPackageName = $JavaPackageName & "." & $class.NamespacePrefix
  159.     endif
  160.     if not $class.IsInternal
  161.         create $outputpath & "/" & $FullPackageDir & "/" & $class.Name & ".java"
  162.             include "java/Module.java"
  163.         close
  164.     endif
  165. next
  166.  
  167. '-----------------------------------------------------------
  168. ' Altova XML Package
  169. '-----------------------------------------------------------
  170. $BasePath = $outputpath & "/com/altova/xml/"
  171. create $BasePath & "types/SchemaType.java"        : include "java/SchemaType.java"    : close
  172.  
  173. create $BasePath & "types/SchemaBoolean.java"    : include "java/SchemaBoolean.java"    : close
  174. create $BasePath & "types/SchemaByte.java"        : include "java/SchemaByte.java"    : close
  175. create $BasePath & "types/SchemaShort.java"        : include "java/SchemaShort.java"    : close
  176. create $BasePath & "types/SchemaInt.java"        : include "java/SchemaInt.java"    : close
  177. create $BasePath & "types/SchemaLong.java"        : include "java/SchemaLong.java"    : close
  178.  
  179. create $BasePath & "types/SchemaInteger.java"    : include "java/SchemaInteger.java"    : close
  180. create $BasePath & "types/SchemaDecimal.java"    : include "java/SchemaDecimal.java"    : close
  181. create $BasePath & "types/SchemaDouble.java"    : include "java/SchemaDouble.java"    : close
  182. create $BasePath & "types/SchemaFloat.java"        : include "java/SchemaFloat.java"    : close
  183.  
  184. create $BasePath & "types/SchemaDateTime.java"            : include "java/SchemaDateTime.java"            : close
  185.  
  186. create $BasePath & "types/SchemaString.java"            : include "java/SchemaString.java"                : close
  187. create $BasePath & "types/SchemaNormalizedString.java"    : include "java/SchemaNormalizedString.java"    : close
  188. create $BasePath & "types/SchemaToken.java"                : include "java/SchemaToken.java"                : close
  189. create $BasePath & "types/SchemaLanguage.java"            : include "java/SchemaLanguage.java"            : close
  190. create $BasePath & "types/SchemaName.java"                : include "java/SchemaName.java"                : close
  191. create $BasePath & "types/SchemaNMToken.java"            : include "java/SchemaNMToken.java"                : close
  192. create $BasePath & "types/SchemaNCName.java"            : include "java/SchemaNCName.java"                : close
  193. create $BasePath & "types/SchemaID.java"                : include "java/SchemaID.java"                    : close
  194. create $BasePath & "types/SchemaIDRef.java"                : include "java/SchemaIDRef.java"                : close
  195. create $BasePath & "types/SchemaEntity.java"            : include "java/SchemaEntity.java"                : close
  196.  
  197. create $BasePath & "Document.java"                : include "java/Document.java"        : close
  198. create $BasePath & "Node.java"                    : include "java/Node.java"            : close
  199. create $BasePath & "XmlException.java"            : include "java/XmlException.java"    : close
  200. ]