[mapguide-commits] r6220 - trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Schema

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Fri Nov 11 09:12:28 EST 2011


Author: jng
Date: 2011-11-11 06:12:28 -0800 (Fri, 11 Nov 2011)
New Revision: 6220

Modified:
   trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Schema/DataPropertyDefinition.cs
Log:
#1847: Handle xs:short and other unaccounted for XML schema data types

Modified: trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Schema/DataPropertyDefinition.cs
===================================================================
--- trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Schema/DataPropertyDefinition.cs	2011-11-11 13:49:12 UTC (rev 6219)
+++ trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Schema/DataPropertyDefinition.cs	2011-11-11 14:12:28 UTC (rev 6220)
@@ -141,7 +141,10 @@
                 case "xs:boolean":
                     return DataPropertyType.Boolean;
                 case "fdo:byte":
+                case "xs:byte":
+                case "xs:unsignedByte":
                     return DataPropertyType.Byte;
+                case "xs:date":
                 case "xs:datetime":
                     return DataPropertyType.DateTime;
                 case "fdo:double":
@@ -151,14 +154,23 @@
                     return DataPropertyType.Double;
                 case "fdo:int16":
                 case "xs:int16":
+                case "xs:short":
+                case "xs:unsignedShort":
                     return DataPropertyType.Int16;
                 case "fdo:int32":
                 case "xs:int32":
+                case "xs:integer":
+                case "xs:negativeInteger":
+                case "xs:nonNegativeInteger":
+                case "xs:nonPositiveInteger":
+                case "xs:positiveInteger":
+                case "xs:unsignedInt":
                 case "xs:int":
                     return DataPropertyType.Int32;
                 case "fdo:int64":
                 case "xs:int64":
                 case "xs:long":
+                case "xs:unsignedLong":
                     return DataPropertyType.Int64;
                 case "xs:float":
                 case "xs:single":



More information about the mapguide-commits mailing list