IfcDoc.Program.ImportXsdType C# (CSharp) Method

ImportXsdType() static private method

static private ImportXsdType ( string xsdtype ) : string
xsdtype string
return string
        internal static string ImportXsdType(string xsdtype)
        {
            if (xsdtype == null)
                return null;

            switch (xsdtype)
            {
                case "xs:string":
                case "xs:anyURI":
                    return "STRING";

                case "xs:decimal":
                case "xs:float":
                case "xs:double":
                    return "REAL";

                case "xs:integer":
                case "xs:byte": // signed 8-bit
                case "xs:short": // signed 16-bit
                case "xs:int": // signed 32-bit
                case "xs:long": // signed 64-bit
                    return "INTEGER";

                case "xs:boolean":
                    return "BOOLEAN";

                case "xs:base64Binary":
                case "xs:hexBinary":
                    return "BINARY";

                default:
                    return xsdtype;
            }
        }