public final class DocumentWriterConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
String |
attributeIndent |
String |
attrQuot |
String |
indent |
String |
prettyPrint |
| Modifier and Type | Method and Description |
|---|---|
static DocumentWriterConfig |
config()
Public factory method to create new config.
|
DocumentWriterConfig |
doubleQuoteValue()
Quote attribute values using double quote: `"`
This is the default for new config.
|
DocumentWriterConfig |
indentAttribute(int level)
Set indentation for attributes.
|
DocumentWriterConfig |
indentSpaces(int level)
Set indentation to specified number of spaces.
|
DocumentWriterConfig |
indentTabs()
Set indentation to tabs.
|
DocumentWriterConfig |
indentTabs(int level)
Set indentation to specified number of tabs.
|
DocumentWriterConfig |
singleQuoteValue()
Quote attribute values using single quote (apostrophe): `'`
|
public final String attrQuot
public final String prettyPrint
public final String indent
public final String attributeIndent
public static DocumentWriterConfig config()
public DocumentWriterConfig singleQuoteValue()
public DocumentWriterConfig doubleQuoteValue()
public DocumentWriterConfig indentSpaces(int level)
level - Number of spaces to be used to indent.public DocumentWriterConfig indentTabs(int level)
level - Number of tabs to be used to indent.public DocumentWriterConfig indentTabs()
public DocumentWriterConfig indentAttribute(int level)
level - Level of additional attribute indentation.Copyright © 2018. All rights reserved.