Changeset 1892
- Timestamp:
- 07/21/07 12:51:36 (1 year ago)
- Files:
-
- trunk/lib/soap/baseData.rb (modified) (1 diff)
- trunk/lib/soap/mapping/typeMap.rb (modified) (2 diffs)
- trunk/lib/xsd/datatypes.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/soap/baseData.rb
r1857 r1892 256 256 extend SOAPModuleUtils 257 257 SOAPENCType = QName.new(EncodingNamespace, LanguageLiteral) 258 end 259 260 class SOAPNMTOKEN < XSD::XSDNMTOKEN 261 include SOAPBasetype 262 extend SOAPModuleUtils 263 SOAPENCType = QName.new(EncodingNamespace, NMTOKENLiteral) 264 end 265 266 class SOAPNMTOKENS < XSD::XSDNMTOKENS 267 include SOAPBasetype 268 extend SOAPModuleUtils 269 SOAPENCType = QName.new(EncodingNamespace, NMTOKENSLiteral) 270 end 271 272 class SOAPName < XSD::XSDName 273 include SOAPBasetype 274 extend SOAPModuleUtils 275 SOAPENCType = QName.new(EncodingNamespace, NameLiteral) 276 end 277 278 class SOAPNCName < XSD::XSDNCName 279 include SOAPBasetype 280 extend SOAPModuleUtils 281 SOAPENCType = QName.new(EncodingNamespace, NCNameLiteral) 282 end 283 284 class SOAPID < XSD::XSDID 285 include SOAPBasetype 286 extend SOAPModuleUtils 287 SOAPENCType = QName.new(EncodingNamespace, IDLiteral) 288 end 289 290 class SOAPIDREF < XSD::XSDIDREF 291 include SOAPBasetype 292 extend SOAPModuleUtils 293 SOAPENCType = QName.new(EncodingNamespace, IDREFLiteral) 294 end 295 296 class SOAPIDREFS < XSD::XSDIDREFS 297 include SOAPBasetype 298 extend SOAPModuleUtils 299 SOAPENCType = QName.new(EncodingNamespace, IDREFSLiteral) 300 end 301 302 class SOAPENTITY < XSD::XSDENTITY 303 include SOAPBasetype 304 extend SOAPModuleUtils 305 SOAPENCType = QName.new(EncodingNamespace, ENTITYLiteral) 306 end 307 308 class SOAPENTITIES < XSD::XSDENTITIES 309 include SOAPBasetype 310 extend SOAPModuleUtils 311 SOAPENCType = QName.new(EncodingNamespace, ENTITIESLiteral) 258 312 end 259 313 trunk/lib/soap/mapping/typeMap.rb
r1840 r1892 17 17 XSD::XSDToken::Type => SOAPToken, 18 18 XSD::XSDLanguage::Type => SOAPLanguage, 19 XSD::XSDNMTOKEN::Type => SOAPNMTOKEN, 20 XSD::XSDNMTOKENS::Type => SOAPNMTOKENS, 21 XSD::XSDName::Type => SOAPName, 22 XSD::XSDNCName::Type => SOAPNCName, 23 XSD::XSDID::Type => SOAPID, 24 XSD::XSDIDREF::Type => SOAPIDREF, 25 XSD::XSDIDREFS::Type => SOAPIDREFS, 26 XSD::XSDENTITY::Type => SOAPENTITY, 27 XSD::XSDENTITIES::Type => SOAPENTITIES, 19 28 XSD::XSDBoolean::Type => SOAPBoolean, 20 29 XSD::XSDDecimal::Type => SOAPDecimal, … … 53 62 SOAP::SOAPToken::Type => SOAPToken, 54 63 SOAP::SOAPLanguage::Type => SOAPLanguage, 64 SOAP::SOAPNMTOKEN::Type => SOAPNMTOKEN, 65 SOAP::SOAPNMTOKENS::Type => SOAPNMTOKENS, 66 SOAP::SOAPName::Type => SOAPName, 67 SOAP::SOAPNCName::Type => SOAPNCName, 68 SOAP::SOAPID::Type => SOAPID, 69 SOAP::SOAPIDREF::Type => SOAPIDREF, 70 SOAP::SOAPIDREFS::Type => SOAPIDREFS, 71 SOAP::SOAPENTITY::Type => SOAPENTITY, 72 SOAP::SOAPENTITIES::Type => SOAPENTITIES, 55 73 SOAP::SOAPBoolean::SOAPENCType => SOAPBoolean, 56 74 SOAP::SOAPDecimal::SOAPENCType => SOAPDecimal, trunk/lib/xsd/datatypes.rb
r1840 r1892 49 49 TokenLiteral = 'token' 50 50 LanguageLiteral = 'language' 51 #3.3.4 NMTOKEN 52 #3.3.5 NMTOKENS 53 #3.3.6 Name 54 #3.3.7 NCName 55 #3.3.8 ID 56 #3.3.9 IDREF 57 #3.3.10 IDREFS 58 #3.3.11 ENTITY 59 #3.3.12 ENTITIES 51 NMTOKENLiteral = 'NMTOKEN' 52 NMTOKENSLiteral = 'NMTOKENS' 53 NameLiteral = 'Name' 54 NCNameLiteral = 'NCName' 55 IDLiteral = 'ID' 56 IDREFLiteral = 'IDREF' 57 IDREFSLiteral = 'IDREFS' 58 ENTITYLiteral = 'ENTITY' 59 ENTITIESLiteral = 'ENTITIES' 60 60 IntegerLiteral = 'integer' 61 61 NonPositiveIntegerLiteral = 'nonPositiveInteger' … … 1053 1053 end 1054 1054 1055 class XSDNMTOKEN < XSDToken 1056 Type = QName.new(Namespace, NMTOKENLiteral) 1057 1058 def initialize(value = nil) 1059 init(Type, value) 1060 end 1061 1062 private 1063 1064 def screen_data(value) 1065 super 1066 # TODO: check lexical space and convert to a value 1067 value 1068 end 1069 end 1070 1071 class XSDNMTOKENS < XSDNMTOKEN 1072 Type = QName.new(Namespace, NMTOKENSLiteral) 1073 1074 def initialize(value = nil) 1075 init(Type, value) 1076 end 1077 1078 private 1079 1080 def screen_data(value) 1081 # derived by list 1082 # TODO: check lexical space and convert to a value 1083 value 1084 end 1085 end 1086 1087 class XSDName < XSDToken 1088 Type = QName.new(Namespace, NameLiteral) 1089 1090 def initialize(value = nil) 1091 init(Type, value) 1092 end 1093 1094 private 1095 1096 def screen_data(value) 1097 super 1098 # TODO: check lexical space and convert to a value 1099 value 1100 end 1101 end 1102 1103 class XSDNCName < XSDName 1104 Type = QName.new(Namespace, NCNameLiteral) 1105 1106 def initialize(value = nil) 1107 init(Type, value) 1108 end 1109 1110 private 1111 1112 def screen_data(value) 1113 super 1114 # TODO: check lexical space and convert to a value 1115 value 1116 end 1117 end 1118 1119 class XSDID < XSDNCName 1120 Type = QName.new(Namespace, IDLiteral) 1121 1122 def initialize(value = nil) 1123 init(Type, value) 1124 end 1125 1126 private 1127 1128 def screen_data(value) 1129 super 1130 # TODO: check lexical space and convert to a value 1131 value 1132 end 1133 end 1134 1135 class XSDIDREF < XSDNCName 1136 Type = QName.new(Namespace, IDREFLiteral) 1137 1138 def initialize(value = nil) 1139 init(Type, value) 1140 end 1141 1142 private 1143 1144 def screen_data(value) 1145 super 1146 # TODO: check lexical space and convert to a value 1147 value 1148 end 1149 end 1150 1151 class XSDIDREFS < XSDIDREF 1152 Type = QName.new(Namespace, IDREFSLiteral) 1153 1154 def initialize(value = nil) 1155 init(Type, value) 1156 end 1157 1158 private 1159 1160 def screen_data(value) 1161 # derived by list 1162 # TODO: check lexical space and convert to a value 1163 value 1164 end 1165 end 1166 1167 class XSDENTITY < XSDNCName 1168 Type = QName.new(Namespace, ENTITYLiteral) 1169 1170 def initialize(value = nil) 1171 init(Type, value) 1172 end 1173 1174 private 1175 1176 def screen_data(value) 1177 super 1178 # TODO: check lexical space and convert to a value 1179 value 1180 end 1181 end 1182 1183 class XSDENTITIES < XSDENTITY 1184 Type = QName.new(Namespace, ENTITIESLiteral) 1185 1186 def initialize(value = nil) 1187 init(Type, value) 1188 end 1189 1190 private 1191 1192 def screen_data(value) 1193 # derived by list 1194 # TODO: check lexical space and convert to a value 1195 value 1196 end 1197 end 1198 1055 1199 class XSDInteger < XSDDecimal 1056 1200 Type = QName.new(Namespace, IntegerLiteral)