Interface ConfigurationWriter
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
AbstractConfigurationWriter
,JsonConfigurationWriter
,XmlConfigurationWriter
,YamlConfigurationWriter
- Since:
- 12.1
- Author:
- Tristan Tarrant <tristan@infinispan.org>
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
close()
boolean
hasFeature
(ConfigurationFormatFeature feature) static ConfigurationWriter.Builder
to
(OutputStream os) static ConfigurationWriter.Builder
void
void
void
writeAttribute
(Enum<?> name, boolean value) void
writeAttribute
(Enum<?> name, Iterable<String> values) void
writeAttribute
(Enum<?> name, String value) void
writeAttribute
(String name, boolean value) void
writeAttribute
(String name, Iterable<String> values) void
writeAttribute
(String name, String value) void
writeCharacters
(String chars) void
writeComment
(String comment) void
writeDefaultNamespace
(String namespace) void
writeEmptyElement
(Enum<?> name) void
writeEmptyElement
(String name) void
void
void
void
void
void
void
writeMapItem
(Enum<?> element, Enum<?> name, String key) void
writeMapItem
(Enum<?> element, Enum<?> name, String key, String value) void
writeMapItem
(String element, String name, String key) Writes a complex map entry.void
writeMapItem
(String element, String name, String key, String value) Writes a simple map entry.void
writeNamespace
(String prefix, String namespace) void
writeStartArrayElement
(Enum<?> name) void
writeStartArrayElement
(String name) Writes an array element.void
void
writeStartElement
(Enum<?> name) void
writeStartElement
(String name) void
writeStartElement
(String prefix, String namespace, Enum<?> name) void
writeStartElement
(String prefix, String namespace, String name) void
writeStartListElement
(Enum<?> name, boolean explicit) void
writeStartListElement
(String name, boolean explicit) Starts a list element.void
writeStartListElement
(String prefix, String namespace, Enum<?> name, boolean explicit) void
writeStartListElement
(String prefix, String namespace, String name, boolean explicit) void
writeStartMap
(Enum<?> name) void
writeStartMap
(String name)
-
Method Details
-
to
-
to
-
clearTextSecrets
boolean clearTextSecrets() -
writeStartDocument
void writeStartDocument() -
writeStartElement
-
writeStartElement
-
writeStartElement
-
writeStartElement
-
writeStartArrayElement
Writes an array element. This will be treated as follows by the various implementations:- XML <outer></outer>
- YAML
name:
- item1 - item2 - JSON name: [ item1, item2 ]
- Parameters:
name
-
-
writeStartArrayElement
-
writeEndArrayElement
void writeEndArrayElement() -
writeArrayElement
-
writeArrayElement
-
writeStartListElement
Starts a list element.- Parameters:
name
-explicit
-
-
writeStartListElement
-
writeStartListElement
-
writeStartListElement
-
writeEndListElement
void writeEndListElement() -
writeStartMap
-
writeStartMap
-
writeMapItem
Writes a simple map entry.- XML: <element name="key">value<element>
- JSON: { key: value }
- YAML: key: value
The key name is not translated by the underlying serialization implementation and is used as is
- Parameters:
element
- Used only by XMLname
- Used only by XMLkey
-value
-
-
writeMapItem
- See Also:
-
writeMapItem
Writes a complex map entry.- XML: <element name="key">...<element>
- JSON: { key: { ... } }
- YAML: key:
The key name is not translated by the underlying serialization implementation and is used as is
- Parameters:
element
- Used only by XMLname
- Used only by XMLkey
-
-
writeMapItem
-
writeEndMapItem
void writeEndMapItem() -
writeEndMap
void writeEndMap() -
writeDefaultNamespace
-
writeEndElement
void writeEndElement() -
writeEndDocument
void writeEndDocument() -
writeAttribute
-
writeAttribute
-
writeAttribute
-
writeAttribute
-
writeAttribute
-
writeAttribute
-
writeCharacters
-
writeEmptyElement
-
writeEmptyElement
-
writeComment
-
writeNamespace
-
hasFeature
-
close
void close()- Specified by:
close
in interfaceAutoCloseable
-