Class OutputUtilities

java.lang.Object
org.mybatis.generator.api.dom.OutputUtilities

public class OutputUtilities extends Object
  • Method Details

    • javaIndent

      public static void javaIndent(StringBuilder sb, int indentLevel)
      Utility method that indents the buffer by the default amount for Java (four spaces per indent level).
      Parameters:
      sb - a StringBuilder to append to
      indentLevel - the required indent level
    • kotlinIndent

      public static void kotlinIndent(StringBuilder sb, int indentLevel)
      Utility method that indents the buffer by the default amount for Kotlin (four spaces per indent level).
      Parameters:
      sb - a StringBuilder to append to
      indentLevel - the required indent level
    • xmlIndent

      public static void xmlIndent(StringBuilder sb, int indentLevel)
      Utility method that indents the buffer by the default amount for XML (two spaces per indent level).
      Parameters:
      sb - a StringBuilder to append to
      indentLevel - the required indent level