public class RenderFormatting
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
indentation |
protected java.lang.String |
newline |
protected java.lang.Integer |
printMargin |
Constructor and Description |
---|
RenderFormatting() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
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.
|
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.
|
RenderFormatting |
withIndentation(java.lang.String value) |
RenderFormatting |
withNewline(java.lang.String value) |
RenderFormatting |
withPrintMargin(java.lang.Integer value) |
protected java.lang.String newline
protected java.lang.String indentation
protected java.lang.Integer printMargin
public java.lang.String getNewline()
String
public void setNewline(java.lang.String value)
value
- allowed object is
String
public java.lang.String getIndentation()
String
public void setIndentation(java.lang.String value)
value
- allowed object is
String
public java.lang.Integer getPrintMargin()
Integer
public void setPrintMargin(java.lang.Integer value)
value
- allowed object is
Integer
public RenderFormatting withNewline(java.lang.String value)
public RenderFormatting withIndentation(java.lang.String value)
public RenderFormatting withPrintMargin(java.lang.Integer value)
public java.lang.Object clone()
clone
in class java.lang.Object
Copyright © 2018. All Rights Reserved.