public final class XMLFormat
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
XMLFormat.RecordFormat
The format of individual XML records.
|
| Modifier and Type | Field and Description |
|---|---|
static XMLFormat |
DEFAULT_FOR_RECORDS |
static XMLFormat |
DEFAULT_FOR_RESULTS |
| Constructor and Description |
|---|
XMLFormat() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
format()
The formatting flag.
|
XMLFormat |
format(boolean newFormat)
The new value for the formatting flag, defaulting to
false. |
boolean |
header()
The header.
|
XMLFormat |
header(boolean newHeader)
The new header value, defaulting to
true. |
int |
indent()
The indentation.
|
XMLFormat |
indent(int newIndent)
The new indentation value, defaulting to
2. |
java.lang.String |
indentString(int level)
Convenience method to get an indentation string at a given level.
|
java.lang.String |
newline()
The formatting flag.
|
XMLFormat |
newline(java.lang.String newNewline)
The new newline character, defaulting to
\n. |
XMLFormat.RecordFormat |
recordFormat()
The record format to be applied, defaulting to
XMLFormat.RecordFormat.VALUE_ELEMENTS_WITH_FIELD_ATTRIBUTE. |
XMLFormat |
recordFormat(XMLFormat.RecordFormat newRecordFormat)
The record format to be applied, defaulting to
XMLFormat.RecordFormat.VALUE_ELEMENTS_WITH_FIELD_ATTRIBUTE. |
boolean |
xmlns()
The xmlns flag.
|
XMLFormat |
xmlns(boolean newXmlns)
The new value for the xmlns flag, defaulting to
true. |
public static final XMLFormat DEFAULT_FOR_RESULTS
public static final XMLFormat DEFAULT_FOR_RECORDS
public XMLFormat xmlns(boolean newXmlns)
true.public boolean xmlns()
public XMLFormat format(boolean newFormat)
false.public boolean format()
public XMLFormat newline(java.lang.String newNewline)
\n.public java.lang.String newline()
public XMLFormat indent(int newIndent)
2.public int indent()
public java.lang.String indentString(int level)
public XMLFormat header(boolean newHeader)
true.
This flag governs whether the
This flag is ignored on /result/fields element should be
generated on export.
Record.formatXML(XMLFormat) and similar
methods.
public boolean header()
public XMLFormat recordFormat(XMLFormat.RecordFormat newRecordFormat)
XMLFormat.RecordFormat.VALUE_ELEMENTS_WITH_FIELD_ATTRIBUTE.public XMLFormat.RecordFormat recordFormat()
XMLFormat.RecordFormat.VALUE_ELEMENTS_WITH_FIELD_ATTRIBUTE.Copyright © 2018. All Rights Reserved.