Class OutputUtilities

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

public class OutputUtilities extends Object
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    Utility class - no instances allowed.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    javaIndent(StringBuilder sb, int indentLevel)
    Utility method that indents the buffer by the default amount for Java (four spaces per indent level).
    static void
    kotlinIndent(StringBuilder sb, int indentLevel)
    Utility method that indents the buffer by the default amount for Kotlin (four spaces per indent level).
    static void
    xmlIndent(StringBuilder sb, int indentLevel)
    Utility method that indents the buffer by the default amount for XML (two spaces per indent level).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OutputUtilities

      private OutputUtilities()
      Utility class - no instances allowed.
  • 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