Class ClassTools

java.lang.Object
ch.helvethink.odoo4java.generator.ClassTools

public final class ClassTools extends Object
Some tools for the classes we want to generate
  • Method Details

    • sanitizeClassName

      public static String sanitizeClassName(String c)
      Sanitize class names, i.e. compliant with Java and Camel Cased
      Parameters:
      c - className
      Returns:
      The class name sanitized
    • getJavaType

      public static String getJavaType(String odooType)
      Mapping between odooType and Java type
      Parameters:
      odooType - The Odoo type for a field
      Returns:
      The corresponding Java type