[mapguide-commits] r7129 - branches/maestro-4.0.x/OSGeo.MapGuide.MaestroAPI/Schema

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu Oct 18 12:29:28 PDT 2012


Author: jng
Date: 2012-10-18 12:29:27 -0700 (Thu, 18 Oct 2012)
New Revision: 7129

Modified:
   branches/maestro-4.0.x/OSGeo.MapGuide.MaestroAPI/Schema/DataPropertyDefinition.cs
Log:
#2150: Sync DataPropertyDefinition.GetDataType with the trunk implementation

Modified: branches/maestro-4.0.x/OSGeo.MapGuide.MaestroAPI/Schema/DataPropertyDefinition.cs
===================================================================
--- branches/maestro-4.0.x/OSGeo.MapGuide.MaestroAPI/Schema/DataPropertyDefinition.cs	2012-10-18 19:21:47 UTC (rev 7128)
+++ branches/maestro-4.0.x/OSGeo.MapGuide.MaestroAPI/Schema/DataPropertyDefinition.cs	2012-10-18 19:29:27 UTC (rev 7129)
@@ -133,52 +133,52 @@
         /// <returns></returns>
         public static DataPropertyType GetDataType(string xmlType)
         {
-            switch (xmlType)
+            switch (xmlType.ToLower())
             {
-                case "xs:hexbinary":
-                case "xs:base64Binary":
+                case "xs:hexbinary": //NOXLATE
+                case "xs:base64binary": //NOXLATE
                     return DataPropertyType.Blob;
-                case "xs:boolean":
+                case "xs:boolean": //NOXLATE
                     return DataPropertyType.Boolean;
-                case "fdo:byte":
-                case "xs:byte":
-                case "xs:unsignedByte":
+                case "fdo:byte": //NOXLATE
+                case "xs:byte": //NOXLATE
+                case "xs:unsignedbyte": //NOXLATE
                     return DataPropertyType.Byte;
-                case "xs:date":
-                case "xs:datetime":
+                case "xs:date": //NOXLATE
+                case "xs:datetime": //NOXLATE
                     return DataPropertyType.DateTime;
-                case "fdo:double":
-                case "fdo:decimal":
-                case "xs:decimal":
-                case "xs:double":
+                case "fdo:double": //NOXLATE
+                case "fdo:decimal": //NOXLATE
+                case "xs:decimal": //NOXLATE
+                case "xs:double": //NOXLATE
                     return DataPropertyType.Double;
-                case "fdo:int16":
-                case "xs:int16":
-                case "xs:short":
-                case "xs:unsignedShort":
+                case "fdo:int16": //NOXLATE
+                case "xs:int16": //NOXLATE
+                case "xs:short": //NOXLATE
+                case "xs:unsignedshort": //NOXLATE
                     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":
+                case "fdo:int32": //NOXLATE
+                case "xs:int32": //NOXLATE
+                case "xs:integer": //NOXLATE
+                case "xs:negativeinteger": //NOXLATE
+                case "xs:nonnegativeinteger": //NOXLATE
+                case "xs:nonpositiveinteger": //NOXLATE
+                case "xs:positiveinteger": //NOXLATE
+                case "xs:unsignedint": //NOXLATE
+                case "xs:int": //NOXLATE
                     return DataPropertyType.Int32;
-                case "fdo:int64":
-                case "xs:int64":
-                case "xs:long":
-                case "xs:unsignedLong":
+                case "fdo:int64": //NOXLATE
+                case "xs:int64": //NOXLATE
+                case "xs:long": //NOXLATE
+                case "xs:unsignedlong": //NOXLATE
                     return DataPropertyType.Int64;
-                case "xs:float":
-                case "xs:single":
-                case "fdo:single":
+                case "xs:float": //NOXLATE
+                case "xs:single": //NOXLATE
+                case "fdo:single": //NOXLATE
                     return DataPropertyType.Single;
-                case "xs:string":
+                case "xs:string": //NOXLATE
                     return DataPropertyType.String;
-                case "fdo:clob":
+                case "fdo:clob": //NOXLATE
                     return DataPropertyType.Clob;
                 default:
                     throw new ArgumentException();



More information about the mapguide-commits mailing list