com.phasmidsoftware.tableparser.core.write

Members list

Type members

Classlikes

case class Node(style: String, content: Option[String], attributes: Map[String, String], children: Seq[Node])

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.

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.

Value parameters

attributes

the attributes of this Node (may be empty).

children

the children of this Node (may be empty).

content

the content of this Node, if any.

style

a label that characterizes a particular node type. This will typically be translated directly into the "tag" parameter of the corresponding U type.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Node

Companion object to Node.

Companion object to Node.

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Node.type
trait TreeWriter[U]

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.

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.

Type parameters

U

the type of a node of the tree.

Attributes

Supertypes
class Object
trait Matchable
class Any
trait Writable[O]

Trait to enable rendering of a table to a sequential (non-hierarchical) output format. A typeclass.

Trait to enable rendering of a table to a sequential (non-hierarchical) output format. A typeclass.

Type parameters

O

the underlying type, for example, a StringBuilder.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait WritableCrypt[O]
object Writable

The Writable object provides factory methods for creating instances of the Writable type 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.

The Writable object provides factory methods for creating instances of the Writable type 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.

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Writable.type