Text

com.phasmidsoftware.xmldoc.core.Text
See theText companion object
case class Text($: CharSequence) extends Mergeable[Text]

Represents a text element that wraps a CharSequence and provides functionality for merging text and matching content.

Value parameters

$

the wrapped CharSequence representing the text content.

Attributes

Constructor

Creates a new Text instance.

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Mergeable[Text]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def equals(obj: Any): Boolean

Checks whether this instance is equal to that. This universal equality method is defined in AnyRef.

Checks whether this instance is equal to that. This universal equality method is defined in AnyRef.

Attributes

Definition Classes
Equals -> Any
def matches(name: String): Boolean

Method to determine if this Text matches the given name.

Method to determine if this Text matches the given name.

Value parameters

name

the name to match

Attributes

Returns

true if the this matches name.

infix def merge(t: Text, mergeName: Boolean = ...): Option[Text]

Method to merge this and another Text element.

Method to merge this and another Text element.

Value parameters

t

the object to be merged with this.

Attributes

Returns

the merged value of T.

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