- 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)
Sets the value of the indentation property.void
setNewline(String value)
Sets the value of the newline property.void
setPrintMargin(Integer value)
Sets the value of the printMargin property.String
toString()
RenderFormatting
withIndentation(String value)
RenderFormatting
withNewline(String value)
RenderFormatting
withPrintMargin(Integer value)
-
-
-
Method Detail
-
getNewline
public String getNewline()
The character to be used for line breaks.- Returns:
- possible object is
String
-
setNewline
public void setNewline(String value)
Sets the value of the newline property.- Parameters:
value
- allowed object isString
-
getIndentation
public String getIndentation()
The characters to be used for indentation.- Returns:
- possible object is
String
-
setIndentation
public void setIndentation(String value)
Sets the value of the indentation property.- Parameters:
value
- allowed object isString
-
getPrintMargin
public Integer getPrintMargin()
The print margin after which (some) formatted elements will break lines.- Returns:
- possible object is
Integer
-
setPrintMargin
public void setPrintMargin(Integer value)
Sets the value of the printMargin property.- Parameters:
value
- allowed object isInteger
-
withNewline
public RenderFormatting withNewline(String value)
-
withIndentation
public RenderFormatting withIndentation(String value)
-
withPrintMargin
public RenderFormatting withPrintMargin(Integer value)
-
appendTo
public final void appendTo(XMLBuilder builder)
- Specified by:
appendTo
in interfaceXMLAppendable
-
-