- 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 String
indentation
protected String
newline
protected Integer
printMargin
-
Constructor Summary
Constructors Constructor Description RenderFormatting()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendTo(XMLBuilder builder)
Object
clone()
boolean
equals(Object that)
String
getIndentation()
The characters to be used for indentation.String
getNewline()
The character to be used for line breaks.Integer
getPrintMargin()
The print margin after which (some) formatted elements will break lines.int
hashCode()
void
setIndentation(String value)
The characters to be used for indentation.void
setNewline(String value)
The character to be used for line breaks.void
setPrintMargin(Integer value)
The print margin after which (some) formatted elements will break lines.String
toString()
RenderFormatting
withIndentation(String value)
The characters to be used for indentation.RenderFormatting
withNewline(String value)
The character to be used for line breaks.RenderFormatting
withPrintMargin(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:
appendTo
in interfaceXMLAppendable
-
-