1 /** 2 * Copyright © DiamondMVC 2019 3 * License: MIT (https://github.com/DiamondMVC/Diamond/blob/master/LICENSE) 4 * Author: Jacob Jensen (bausshf) 5 */ 6 module diamond.web.soap.service.datatypes; 7 8 import std.datetime : DateTime; 9 10 public 11 { 12 /// xsd.duration 13 alias duration = string; 14 /// xsd.dateTime 15 alias dateTime = DateTime; 16 /// xsd.time 17 alias time = DateTime; 18 /// xsd.data 19 alias data = string; 20 /// xsd.gYearMonth 21 alias gYearMonth = string; 22 /// xsd.gYear 23 alias gYear = string; 24 /// xsd.gMonthDay 25 alias gMonthDay = string; 26 /// xsd.gDay 27 alias gDay = string; 28 /// xsd.gMonth 29 alias gMonth = string; 30 /// xsd.Boolean 31 alias Boolean = bool; 32 /// xsd.base64Binary 33 alias base64Binary = ubyte[]; 34 /// xsd.hexBinary 35 alias hexBinary = string; 36 /// xsd.decimal. TODO: switch to decimal type when implemented. 37 alias decimal = real; 38 /// xsd.anyURI 39 alias anyURI = string; 40 /// xsd.QName 41 alias QName = string; 42 /// xsd.NOTATION 43 alias NOTATION = string; 44 /// xsd.normalizedString 45 alias normalizedString = string; 46 /// xsd.token 47 alias token = normalizedString; 48 /// xsd.language 49 alias language = token; 50 /// xsd.name 51 alias name = token; 52 /// xsd.NCName 53 alias NCName = name; 54 /// xsd.ID 55 alias ID = NCName; 56 /// xsd.IDREF 57 alias IDREF = NCName; 58 /// xsd.IDREFS 59 alias IDREFS = IDREF[]; 60 /// xsd.ENTITY 61 alias ENTITY = NCName; 62 /// xsd.ENTITIES 63 alias ENTITIES = ENTITY[]; 64 /// xsd.NMTOKEN 65 alias NMTOKEN = token; 66 /// xsd.NMTOKENS 67 alias NMTOKENS = NMTOKEN[]; 68 /// xsd.integer 69 alias integer = size_t; 70 /// xsd.nonPositiveInteger 71 alias nonPositiveInteger = ptrdiff_t; 72 /// xsd.negativeInteger 73 alias negativeInteger = nonPositiveInteger; 74 /// xsd.nonNegativeInteger 75 alias nonNegativeInteger = size_t; 76 /// xsd.positiveInteger 77 alias positiveInteger = nonNegativeInteger; 78 /// xsd.unsignedLong 79 alias unsignedLong = ulong; 80 /// xsd.unsignedInt 81 alias unsignedInt = uint; 82 /// xsd.unsignedShort 83 alias unsignedShort = ushort; 84 /// xsd.unsignedByte 85 alias unsignedByte = ubyte; 86 87 import diamond.web.soap.service.envelopetype; 88 import diamond.web.soap.service.binding; 89 import diamond.web.soap.service.attributes; 90 }