Content

com.phasmidsoftware.xmldoc.merge.Content
See theContent companion object
case class Content(label: String, tag: String, attributes: Seq[(String, String)], text: Option[String] = ..., textIsCData: Boolean = ..., kind: ContentKind = ...)

The content relation c(label, content). Elements, plain-text nodes and CDATA nodes all get their own identity and their own relation, matching Lindholm's model instead of folding a leaf's character data into its parent element.

tag and attributes are meaningful for ElementNode. text is meaningful for TextNode/CDataNode. The old fields and defaults are retained so callers constructing an element Content(label, tag, attributes) remain source-compatible; new code should prefer the factories in Content.

Attributes

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

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product