ListBuilder

papyrus.DSL.builders.ListBuilder

Represents a nestable list builder with optional sorting (only allowed inside Papyrus, Content, Section, SubSection and Listing)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

Adds an item or a nested list

Adds an item or a nested list

Attributes

def build: Listing

Builds the final listing

Builds the final listing

Attributes

def copyWith(items: List[ListElementBuilder], listType: ListType, order: Option[SortingList], reference: Option[String]): ListBuilder

Creates a modified copy with custom internal state

Creates a modified copy with custom internal state

Attributes

def order: Option[SortingList]
def reference: Option[String]

Sets the list type ("ul" or "ol")

Sets the list type ("ul" or "ol")

Attributes

def withReference(str: String): ListBuilder

Sets a reference string used for Levenshtein sorting

Sets a reference string used for Levenshtein sorting

Attributes

Applies sorting based on the provided order type ("alphabetic", "length", "revert", "levenshtein")

Applies sorting based on the provided order type ("alphabetic", "length", "revert", "levenshtein")

Attributes