home *** CD-ROM | disk | FTP | other *** search
- [
- '-----------------------------------------------------------
- ' C# XML Project Template
- '
- ' Copyright (C) 2002-2003 Altova GmbH - The XMLSPY Company
- ' All rights reserved.
- '
- ' XMLSPY 5 Enterprise Edition generates C# classes
- ' based on this template.
- ' Refer to the XMLSPY Documentation for further details.
- '
- ' http://www.altova.com/xmlspy
- '-----------------------------------------------------------
-
- map type "boolean" to "SchemaBoolean"
-
- map type "byte" to "SchemaInt"
- map type "unsignedByte" to "SchemaInt"
- map type "short" to "SchemaInt"
- map type "unsignedShort" to "SchemaInt"
- map type "int" to "SchemaInt"
- map type "unsignedInt" to "SchemaInt"
- map type "long" to "SchemaLong"
- map type "unsignedLong" to "SchemaLong"
-
- map type "integer" to "SchemaLong"
- map type "nonPositiveInteger" to "SchemaLong"
- map type "negativeInteger" to "SchemaLong"
- map type "positiveInteger" to "SchemaLong"
- map type "nonNegativeInteger" to "SchemaLong"
-
- map type "decimal" to "SchemaDecimal"
- map type "float" to "SchemaDecimal"
- map type "double" to "SchemaDecimal"
-
- map type "duration" to "SchemaString"
- map type "gYear" to "SchemaString"
- map type "gDay" to "SchemaString"
- map type "gMonth" to "SchemaString"
- map type "gYearMonth" to "SchemaString"
- map type "gMonthDay" to "SchemaString"
- map type "date" to "SchemaString"
- map type "time" to "SchemaString"
- map type "dateTime" to "SchemaDateTime"
-
- map type "string" to "SchemaString"
- map type "hexBinary" to "SchemaString"
- map type "base64Binary" to "SchemaString"
- map type "anyURI" to "SchemaString"
- map type "QName" to "SchemaString"
- map type "NOTATION" to "SchemaString"
- map type "normalizedString" to "SchemaString"
- map type "token" to "SchemaString"
- map type "language" to "SchemaString"
- map type "IDREF" to "SchemaString"
- map type "ENTITY" to "SchemaString"
- map type "NMTOKEN" to "SchemaString"
- map type "Name" to "SchemaString"
- map type "NCName" to "SchemaString"
- map type "ID" to "SchemaString"
- map type "IDREFS" to "SchemaString"
- map type "ENTITIES" to "SchemaString"
- map type "NMTOKENS" to "SchemaString"
-
- map type "anySimpleType" to "SchemaString"
-
- default "ValidFirstCharSet" is "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
- default "ValidCharSet" is "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_0123456789"
- default "InvalidCharReplacement" is "_"
- default "AnonTypePrefix" is ""
- default "AnonTypeSuffix" is "Type"
- default "ClassNamePrefix" is ""
- default "ClassNameSuffix" is ""
- default "FallbackName" is "Name"
-
- reserve "abstract"
- reserve "as"
- reserve "base"
- reserve "bool"
- reserve "break"
- reserve "byte"
- reserve "case"
- reserve "catch"
- reserve "char"
- reserve "checked"
- reserve "class"
- reserve "const"
- reserve "continue"
- reserve "decimal"
- reserve "default"
- reserve "delegate"
- reserve "do"
- reserve "double"
- reserve "else"
- reserve "enum"
- reserve "event"
- reserve "explicit"
- reserve "extern"
- reserve "false"
- reserve "finally"
- reserve "fixed"
- reserve "float"
- reserve "for"
- reserve "foreach"
- reserve "goto"
- reserve "if"
- reserve "implicit"
- reserve "in"
- reserve "int"
- reserve "interface"
- reserve "internal"
- reserve "is"
- reserve "lock"
- reserve "long"
- reserve "namespace"
- reserve "new"
- reserve "null"
- reserve "object"
- reserve "operator"
- reserve "out"
- reserve "override"
- reserve "params"
- reserve "private"
- reserve "protected"
- reserve "public"
- reserve "readonly"
- reserve "ref"
- reserve "return"
- reserve "sbyte"
- reserve "sealed"
- reserve "short"
- reserve "sizeof"
- reserve "stackalloc"
- reserve "static"
- reserve "string"
- reserve "struct"
- reserve "switch"
- reserve "this"
- reserve "throw"
- reserve "true"
- reserve "try"
- reserve "typeof"
- reserve "uint"
- reserve "ulong"
- reserve "unchecked"
- reserve "unsafe"
- reserve "ushort"
- reserve "using"
- reserve "virtual"
- reserve "void"
- reserve "volatile"
- reserve "while"
-
- reserve "Type"
- reserve "NodeType"
-
- $QualifiedFilename = ""
- $QualifiedNamespace = ""
- $QualifiedBase = ""
- $QualifiedType = ""
- $QualifiedValueType = ""
- $BasePath = ""
- $IsQualified = ""
-
- '-----------------------------------------------------------
- ' Test Project (C#)
- '-----------------------------------------------------------
- $BasePath = $outputpath & "/" & $module & "Test/"
- create $BasePath & $module & "Test.cs" : include "cs/ModuleTest/ModuleTest.cs" : close
- create $BasePath & $module & "Test.csproj" : include "cs/ModuleTest/ModuleTest.csproj" : close
- create $BasePath & $module & "Test.sln" : include "cs/ModuleTest/ModuleTest.sln" : close
- create $BasePath & "AssemblyInfo.cs" : include "cs/ModuleTest/AssemblyInfo.cs" : close
-
- '-----------------------------------------------------------
- ' Wrapper Library
- '-----------------------------------------------------------
- $BasePath = $outputpath & "/" & $module & "/"
- create $BasePath & $module & ".csproj" : include "cs/Module/Module.csproj" : close
- create $BasePath & $module & ".sln" : include "cs/Module/Module.sln" : close
- create $BasePath & $module & "Doc.cs" : include "cs/Module/ModuleDoc.cs" : close
- create $BasePath & "AssemblyInfo.cs" : include "cs/Module/AssemblyInfo.cs" : close
-
- foreach $namespace in $namespaces
- foreach $class in $namespace.Classes
- if $class.NamespacePrefix = ""
- $QualifiedFilename = $class.Name & ".cs"
- $QualifiedNamespace = $module
- else
- $QualifiedFilename = $class.NamespacePrefix & "_" & $class.Name & ".cs"
- $QualifiedNamespace = $module & "." & $class.NamespacePrefix
- endif
- if not $class.IsInternal
- create $BasePath & $QualifiedFilename : include "cs/Module/Module.cs" : close
- endif
- next
- next
-
- '-----------------------------------------------------------
- ' Altova XML Library
- '-----------------------------------------------------------
- create $outputpath & "/Altova/Document.cs" : include "cs/Altova/Document.cs" : close
- create $outputpath & "/Altova/Node.cs" : include "cs/Altova/Node.cs" : close
- create $outputpath & "/Altova/SchemaTypes.cs" : include "cs/Altova/SchemaTypes.cs" : close
- create $outputpath & "/Altova/AssemblyInfo.cs" : include "cs/Altova/AssemblyInfo.cs" : close
- create $outputpath & "/Altova/Altova.csproj" : include "cs/Altova/Altova.csproj" : close
- create $outputpath & "/Altova/Altova.sln" : include "cs/Altova/Altova.sln" : close
- ]