Element

abstract class Element extends Product with Serializable

The base class for all Elements forming the document tree. Usually not extended directly, instead either Span or Block should be picked as the base type for new element types.

All node types have an optional id and zero or more associated styles serving as render hints.

trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
trait Block
class Contents
class Include
class Citation
class CodeBlock
class Comment
class LinkAlias
class EnumList
class Figure
class Footnote
class Header
class PageBreak
class Paragraph
class Rule
class Section
class Selection
class Table
class Title
class HTMLBlock
class Preamble
class FieldList
class Line
class LineBlock
trait Container[T]
class Cell
class Choice
class Field
class Caption
class Deleted
class Inserted
class SpanLink
class Strong
class Columns
class Row
class TableBody
class TableHead
class CodeSpan
class Literal
class Text
trait Hidden
trait Invalid
trait ListItem
trait Span
trait Icon
class IconGlyph
class IconStyle
class LineBreak
trait Link
class Image
class RawLink
trait LocalLink
trait Reference
class Reverse
class SpanScope
class HTMLSpan
class Leader
class Column
trait ElementScope[E]

Type members

Types

type Self <: Element

Value members

Abstract methods

def withOptions(options: Options): Self

Returns a new instance of this element with the specified options replacing the current value.

Returns a new instance of this element with the specified options replacing the current value.

Concrete methods

def hasId: Boolean

Indicates whether this element has an id assigned.

Indicates whether this element has an id assigned.

def hasStyle(name: String): Boolean

Indicates whether this element has the specified style assigned.

Indicates whether this element has the specified style assigned.

Returns a new instance of this element with its options merged with the specified options.

Returns a new instance of this element with its options merged with the specified options.

Returns a new instance of this element with the new options obtained from applying the specified function to the existing value.

Returns a new instance of this element with the new options obtained from applying the specified function to the existing value.

def withId(id: String): Self

Returns a new instance of this element with its id set to the specified value, overriding any existing value.

Returns a new instance of this element with its id set to the specified value, overriding any existing value.

def withStyle(name: String): Self

Returns a new instance of this element with the specified style added to its existing styles.

Returns a new instance of this element with the specified style added to its existing styles.

def withStyles(style: String, styles: String*): Self

Returns a new instance of this element with the specified styles added to its existing styles.

Returns a new instance of this element with the specified styles added to its existing styles.

def withStyles(styles: Iterable[String]): Self

Returns a new instance of this element with the specified styles added to its existing styles.

Returns a new instance of this element with the specified styles added to its existing styles.

Returns a new instance of this element without its id.

Returns a new instance of this element without its id.

Inherited methods

def canEqual(that: Any): Boolean
Inherited from:
Equals
def productArity: Int
Inherited from:
Product
def productElement(n: Int): Any
Inherited from:
Product
def productElementName(n: Int): String
Inherited from:
Product
def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product
def productPrefix: String
Inherited from:
Product