Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    private static String fromOdm2XformDataType(String dataType) {
        if (dataType.equalsIgnoreCase("integer"))
            return "xsd:int";
        else if (dataType.equalsIgnoreCase("float"))
            return "xsd:decimal";
        else if (dataType.equalsIgnoreCase("date"))
            return "xsd:date";
        else if (dataType.equalsIgnoreCase("time"))
            return "xsd:time";
        else if (dataType.equalsIgnoreCase("datetime"))
            return "xsd:dateTime";
        else if (dataType.equalsIgnoreCase("boolean"))
            return "xsd:boolean";
        else if (dataType.equalsIgnoreCase("double"))
            return "xsd:decimal";
        else if (dataType.equalsIgnoreCase("base64Binary"))
            return "xsd:base64Binary";

        return "xsd:string"; //text,string, etc
    }
}