package write
- Alphabetic
- Public
- Protected
Type Members
- case class Node(style: String, content: Option[String], attributes: Map[String, String], children: Seq[Node]) extends Product with Serializable
This case class defines a Node in the hierarchical output produced by rendering.
This case class defines a Node in the hierarchical output produced by rendering. This class is used in conjunction with TreeWriter. The reason for this temporary structure is that we need the ability to merge (or otherwise process) nodes of the tree. Since U (see TreeWriter) is an opaque type as far as this code is concerned, we need our own representation of the tree.
- style
a label that characterizes a particular node type. This will typically be translated directly into the "tag" parameter of the corresponding U type.
- content
the content of this Node, if any.
- attributes
the attributes of this Node (may be empty).
- children
the children of this Node (may be empty).
- trait TreeWriter[U] extends AnyRef
This trait defines the behavior of a hierarchical writer of objects.
This trait defines the behavior of a hierarchical writer of objects. For example, U might be defined as an HTML or XML document. TreeWriter is of course typically used as a type class.
CONSIDER parameterizing the underlying type of the content parameter.
- U
the type of a node of the tree.
- Annotations
- @implicitNotFound()
- trait Writable[O] extends AnyRef
Trait to enable rendering of a table to a sequential (non-hierarchical) output format.
Trait to enable rendering of a table to a sequential (non-hierarchical) output format. A typeclass.
- O
the underlying type, for example, a StringBuilder.
Value Members
- object Node extends Serializable
Companion object to Node.
- object Writable
The
Writableobject provides factory methods for creating instances of theWritabletype that operate with different types of output structures.The
Writableobject provides factory methods for creating instances of theWritabletype that operate with different types of output structures. It encapsulates reusable logic to handle writing character sequences, rows, or other data in a structured manner.