public interface IXMLWriterSettings extends Serializable
| Modifier and Type | Method and Description |
|---|---|
IXMLBracketModeDeterminator |
getBracketModeDeterminator() |
Charset |
getCharset() |
EXMLIncorrectCharacterHandling |
getIncorrectCharacterHandling() |
EXMLSerializeIndent |
getIndent() |
String |
getIndentationString() |
IXMLIndentDeterminator |
getIndentDeterminator() |
INamespaceContext |
getNamespaceContext() |
com.helger.commons.system.ENewLineMode |
getNewLineMode() |
String |
getNewLineString() |
EXMLSerializeComments |
getSerializeComments() |
EXMLSerializeDocType |
getSerializeDocType() |
EXMLSerializeVersion |
getSerializeVersion() |
EXMLSerializeXMLDeclaration |
getSerializeXMLDeclaration() |
EXMLVersion |
getXMLVersion() |
boolean |
isEmitNamespaces()
Determine if namespaces should be emitted or not.
|
boolean |
isOrderAttributesAndNamespaces()
Determine if attributes of elements and namespaces should be emitted in
alphabetical order or not.
|
boolean |
isPutNamespaceContextPrefixesInRoot()
Check if the flag for putting all namespace prefixes specified in the
namespace context should be put in the root document.
|
boolean |
isSpaceOnSelfClosedElement()
Determine if a self closed element (an element having no children) should
be emitted with a space at the end (
<br />) or not (
<br/>) |
boolean |
isUseDoubleQuotesForAttributes() |
boolean |
isWriteCDATAAsText()
Check if all CDATA children should be emitted as normal text or not.
|
@Nonnull EXMLVersion getXMLVersion()
1.0@Nonnull EXMLSerializeVersion getSerializeVersion()
XML 1.0@Nonnull EXMLSerializeXMLDeclaration getSerializeXMLDeclaration()
true.@Nonnull EXMLSerializeDocType getSerializeDocType()
true.@Nonnull EXMLSerializeComments getSerializeComments()
true.@Nonnull EXMLSerializeIndent getIndent()
indent and aligned.@Nonnull IXMLIndentDeterminator getIndentDeterminator()
null.@Nonnull EXMLIncorrectCharacterHandling getIncorrectCharacterHandling()
null.@Nonnull INamespaceContext getNamespaceContext()
null.boolean isUseDoubleQuotesForAttributes()
true if attribute values should be enclosed in double
quotes, false if single quotes should be used.@Nonnull IXMLBracketModeDeterminator getBracketModeDeterminator()
null
.boolean isSpaceOnSelfClosedElement()
<br />) or not (
<br/>)true if a space should be emitted, false
if no space should be emitted.@Nonnull com.helger.commons.system.ENewLineMode getNewLineMode()
null.@Nonnull @Nonempty String getNewLineString()
getNewLineMode ().getText().@Nonnull @Nonempty String getIndentationString()
boolean isEmitNamespaces()
true if namespaces should be emitted,
false if all created elements should reside in the
default namespace.boolean isPutNamespaceContextPrefixesInRoot()
IIterableNamespaceContext interface!true if it is enabled, false if not.boolean isWriteCDATAAsText()
true if CDATA should be written as text,
false to keep CDATA as it is.boolean isOrderAttributesAndNamespaces()
true to order attributes, false to keep
the original order.Copyright © 2014–2018 Philip Helger. All rights reserved.