XmlWriter

org.encalmo.writer.xml.XmlWriter
See theXmlWriter companion trait
object XmlWriter

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
XmlWriter.type

Members list

Value members

Concrete methods

inline def append[T](name: String, value: T)(using builder: XmlOutputBuilder): Unit

Serialize and append value of some type to the given xml output builder

Serialize and append value of some type to the given xml output builder

Attributes

inline def derived[T]: XmlWriter[T]
inline def streamCompact[T](value: T, outputStream: OutputStream, addXmlDeclaration: Boolean = ...): Unit

Streams compact XML output.

Streams compact XML output.

Attributes

inline def streamCompactUsingRootTagName[T](rootTagName: String, value: T, outputStream: OutputStream, addXmlDeclaration: Boolean = ...): Unit

Streams compact XML output using root tag name.

Streams compact XML output using root tag name.

Attributes

inline def streamIndented[T](value: T, outputStream: OutputStream, addXmlDeclaration: Boolean = ...): Unit

Streams indented XML output.

Streams indented XML output.

Attributes

inline def streamIndentedUsingRootTagName[T](rootTagName: String, value: T, outputStream: OutputStream, addXmlDeclaration: Boolean = ...): Unit

Streams indented XML output using root tag name.

Streams indented XML output using root tag name.

Attributes

inline def writeCompact[T](value: T, addXmlDeclaration: Boolean = ...): String

Writes compact XML output.

Writes compact XML output.

Attributes

inline def writeCompactUsingRootTagName[T](rootTagName: String, value: T, addXmlDeclaration: Boolean = ...): String

Writes compact XML output using root tag name.

Writes compact XML output using root tag name.

Attributes

inline def writeCompactWithNameTransformation[T](value: T, tagNameTransformation: String => String, attributeNameTransformation: String => String, addXmlDeclaration: Boolean = ...): String

Writes compact XML output with tag name and attribute name transformation.

Writes compact XML output with tag name and attribute name transformation.

Attributes

inline def writeDocument[T](value: T): Document

Writes org.w3c.dom.Document output.

Writes org.w3c.dom.Document output.

Attributes

inline def writeDocumentUsingRootTagName[T](rootTagName: String, value: T): Document

Writes org.w3c.dom.Document output using root tag name.

Writes org.w3c.dom.Document output using root tag name.

Attributes

inline def writeDocumentWithNamespace[T](value: T, namespace: String): Document

Writes org.w3c.dom.Document output with given namespace.

Writes org.w3c.dom.Document output with given namespace.

Attributes

inline def writeDocumentWithNamespaceFromAttributes[T](value: T): Document

Writes org.w3c.dom.Document output with namespaces derived from 'xmlns' attributes.

Writes org.w3c.dom.Document output with namespaces derived from 'xmlns' attributes.

Attributes

inline def writeDocumentWithNamespaceFromAttributesUsingRootTagName[T](rootTagName: String, value: T): Document

Writes org.w3c.dom.Document output with namespaces derived from 'xmlns' attributes using root tag name.

Writes org.w3c.dom.Document output with namespaces derived from 'xmlns' attributes using root tag name.

Attributes

inline def writeDocumentWithNamespaceMapping[T](value: T, namespaces: Map[String, (String, String)]): Document

Writes org.w3c.dom.Document output with namespaces derived from the given mapping between leading element names and their namespaces.

Writes org.w3c.dom.Document output with namespaces derived from the given mapping between leading element names and their namespaces.

Attributes

inline def writeDocumentWithNamespaceMappingUsingRootTagName[T](rootTagName: String, value: T, namespaces: Map[String, (String, String)]): Document

Writes org.w3c.dom.Document output with namespaces derived from the given mapping between leading element names and their namespaces using root tag name.

Writes org.w3c.dom.Document output with namespaces derived from the given mapping between leading element names and their namespaces using root tag name.

Attributes

inline def writeDocumentWithNamespaceUsingRootTagName[T](rootTagName: String, value: T, namespace: String): Document

Writes org.w3c.dom.Document output with given namespace using root tag name.

Writes org.w3c.dom.Document output with given namespace using root tag name.

Attributes

inline def writeIndented[T](value: T, addXmlDeclaration: Boolean = ...): String

Writes indented XML output.

Writes indented XML output.

Attributes

inline def writeIndentedUsingRootTagName[T](rootTagName: String, value: T, addXmlDeclaration: Boolean = ...): String

Writes indented XML output using root tag name.

Writes indented XML output using root tag name.

Attributes

inline def writeIndentedWithNameTransformation[T](value: T, tagNameTransformation: String => String, attributeNameTransformation: String => String, addXmlDeclaration: Boolean = ...): String

Writes indented XML output with tag name and attribute name transformation.

Writes indented XML output with tag name and attribute name transformation.

Attributes