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.String
indentation
protected java.lang.String
newline
protected java.lang.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)
java.lang.Object
clone()
boolean
equals(java.lang.Object that)
java.lang.String
getIndentation()
The characters to be used for indentation.java.lang.String
getNewline()
The character to be used for line breaks.java.lang.Integer
getPrintMargin()
The print margin after which (some) formatted elements will break lines.int
hashCode()
void
setIndentation(java.lang.String value)
Sets the value of the indentation property.void
setNewline(java.lang.String value)
Sets the value of the newline property.void
setPrintMargin(java.lang.Integer value)
Sets the value of the printMargin property.java.lang.String
toString()
RenderFormatting
withIndentation(java.lang.String value)
RenderFormatting
withNewline(java.lang.String value)
RenderFormatting
withPrintMargin(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:
appendTo
in interfaceXMLAppendable
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object that)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
clone
public java.lang.Object clone()
- Overrides:
clone
in classjava.lang.Object
-
-