Package org.jooq.conf
Class RenderFormatting
- java.lang.Object
-
- org.jooq.conf.RenderFormatting
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,XMLAppendable
public class RenderFormatting extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable, XMLAppendable
All sorts of formatting flags / settings.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringindentationprotected java.lang.Stringnewlineprotected java.lang.IntegerprintMargin
-
Constructor Summary
Constructors Constructor Description RenderFormatting()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendTo(XMLBuilder builder)java.lang.Objectclone()booleanequals(java.lang.Object that)java.lang.StringgetIndentation()The characters to be used for indentation.java.lang.StringgetNewline()The character to be used for line breaks.java.lang.IntegergetPrintMargin()The print margin after which (some) formatted elements will break lines.inthashCode()voidsetIndentation(java.lang.String value)Sets the value of the indentation property.voidsetNewline(java.lang.String value)Sets the value of the newline property.voidsetPrintMargin(java.lang.Integer value)Sets the value of the printMargin property.java.lang.StringtoString()RenderFormattingwithIndentation(java.lang.String value)RenderFormattingwithNewline(java.lang.String value)RenderFormattingwithPrintMargin(java.lang.Integer value)
-
-
-
Method Detail
-
getNewline
public java.lang.String getNewline()
The character to be used for line breaks.- Returns:
- possible object is
String
-
setNewline
public void setNewline(java.lang.String value)
Sets the value of the newline property.- Parameters:
value- allowed object isString
-
getIndentation
public java.lang.String getIndentation()
The characters to be used for indentation.- Returns:
- possible object is
String
-
setIndentation
public void setIndentation(java.lang.String value)
Sets the value of the indentation property.- Parameters:
value- allowed object isString
-
getPrintMargin
public java.lang.Integer getPrintMargin()
The print margin after which (some) formatted elements will break lines.- Returns:
- possible object is
Integer
-
setPrintMargin
public void setPrintMargin(java.lang.Integer value)
Sets the value of the printMargin property.- Parameters:
value- allowed object isInteger
-
withNewline
public RenderFormatting withNewline(java.lang.String value)
-
withIndentation
public RenderFormatting withIndentation(java.lang.String value)
-
withPrintMargin
public RenderFormatting withPrintMargin(java.lang.Integer value)
-
appendTo
public final void appendTo(XMLBuilder builder)
- Specified by:
appendToin interfaceXMLAppendable
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object that)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
clone
public java.lang.Object clone()
- Overrides:
clonein classjava.lang.Object
-
-