public class

OutputUtilities

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

Summary

Public Methods
static Set<String> calculateImports(Set<FullyQualifiedJavaType> importedTypes)
returns a unique set of "import xxx;" Strings for the set of types
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 newLine(StringBuilder sb)
Utility method.
static void xmlIndent(StringBuilder sb, int indentLevel)
Utility method that indents the buffer by the default amount for XML (two spaces per indent level).
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static Set<String> calculateImports (Set<FullyQualifiedJavaType> importedTypes)

returns a unique set of "import xxx;" Strings for the set of types

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

public static void newLine (StringBuilder sb)

Utility method. Adds a newline character to a StringBuilder.

Parameters
sb the StringBuilder to be appended to

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