- 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)Sets the value of the indentation property.voidsetNewline(String value)Sets the value of the newline property.voidsetPrintMargin(Integer value)Sets the value of the printMargin property.StringtoString()RenderFormattingwithIndentation(String value)RenderFormattingwithNewline(String value)RenderFormattingwithPrintMargin(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:
appendToin interfaceXMLAppendable
-
-