- java.lang.Object
-
- org.jooq.conf.RenderFormatting
-
- All Implemented Interfaces:
Serializable,Cloneable,XMLAppendable
public class RenderFormatting extends Object implements Serializable, Cloneable, XMLAppendable
All sorts of formatting flags / settings.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringindentationprotected Stringnewlineprotected IntegerprintMargin
-
Constructor Summary
Constructors Constructor Description RenderFormatting()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendTo(XMLBuilder builder)Objectclone()booleanequals(Object that)StringgetIndentation()The characters to be used for indentation.StringgetNewline()The character to be used for line breaks.IntegergetPrintMargin()The print margin after which (some) formatted elements will break lines.inthashCode()voidsetIndentation(String value)The characters to be used for indentation.voidsetNewline(String value)The character to be used for line breaks.voidsetPrintMargin(Integer value)The print margin after which (some) formatted elements will break lines.StringtoString()RenderFormattingwithIndentation(String value)The characters to be used for indentation.RenderFormattingwithNewline(String value)The character to be used for line breaks.RenderFormattingwithPrintMargin(Integer value)The print margin after which (some) formatted elements will break lines.
-
-
-
Method Detail
-
getNewline
public String getNewline()
The character to be used for line breaks.
-
setNewline
public void setNewline(String value)
The character to be used for line breaks.
-
getIndentation
public String getIndentation()
The characters to be used for indentation.
-
setIndentation
public void setIndentation(String value)
The characters to be used for indentation.
-
getPrintMargin
public Integer getPrintMargin()
The print margin after which (some) formatted elements will break lines.
-
setPrintMargin
public void setPrintMargin(Integer value)
The print margin after which (some) formatted elements will break lines.
-
withNewline
public RenderFormatting withNewline(String value)
The character to be used for line breaks.
-
withIndentation
public RenderFormatting withIndentation(String value)
The characters to be used for indentation.
-
withPrintMargin
public RenderFormatting withPrintMargin(Integer value)
The print margin after which (some) formatted elements will break lines.
-
appendTo
public final void appendTo(XMLBuilder builder)
- Specified by:
appendToin interfaceXMLAppendable
-
-