CDATA

com.phasmidsoftware.xmldoc.core.CDATA
See theCDATA companion class
object CDATA

Companion object to CDATA.

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
CDATA.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply(x: String, pre: String, post: String): CDATA

Constructs a new CDATA instance with the provided content and trimmed prefix and postfix strings.

Constructs a new CDATA instance with the provided content and trimmed prefix and postfix strings.

Value parameters

post

the postfix string, typically surrounding whitespace or newlines.

pre

the prefix string, typically surrounding whitespace or newlines.

x

the string content of the CDATA node.

Attributes

Returns

a new instance of the CDATA case class with trimmed prefix and postfix.

def apply(x: String): CDATA

Constructs a new CDATA instance with the provided content and default empty prefix and postfix strings.

Constructs a new CDATA instance with the provided content and default empty prefix and postfix strings.

Value parameters

x

the string content of the CDATA node.

Attributes

Returns

a new instance of the CDATA case class with default empty prefix and postfix.

def unapply(node: Node): Option[CDATA]

Extracts a CDATA instance from a given XML Node, if the node contains a matching CDATA structure.

Extracts a CDATA instance from a given XML Node, if the node contains a matching CDATA structure.

Value parameters

node

the XML node to be analyzed for CDATA content.

Attributes

Returns

an Option containing the CDATA instance if the node matches the CDATA pattern; otherwise, None.

def wrapped(x: String): CDATA

Constructs a new CDATA instance with the provided content and default prefix and postfix strings set to newlines ("\n").

Constructs a new CDATA instance with the provided content and default prefix and postfix strings set to newlines ("\n").

Value parameters

x

the string content of the CDATA node.

Attributes

Returns

a new instance of the CDATA case class with default prefix and postfix strings set to newlines.