CDATA

com.phasmidsoftware.xmldoc.core.CDATA
See theCDATA companion object
case class CDATA(content: String, pre: String, post: String) extends CharSequence, Mergeable[CDATA]

Case class to represent a CDATA node.

Value parameters

content

the payload of the CDATA node (will contain , & characters).

post

the postfix (probably a newline).

pre

the prefix (probably a newline).

Attributes

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

Members list

Value members

Concrete methods

def charAt(index: Int): Char

Returns the character at the specified index in the content string of this CDATA node.

Returns the character at the specified index in the content string of this CDATA node.

Value parameters

index

the index of the character to be returned, starting from 0.

Attributes

Returns

the character at the specified index in the content string.

def length(): Int

Computes the length of the content string of this CDATA node.

Computes the length of the content string of this CDATA node.

Attributes

Returns

the number of characters in the content string.

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

Merge this mergeable object with t.

Merge this mergeable object with t.

Value parameters

t

the object to be merged with this.

Attributes

Returns

the merged value of T.

def subSequence(start: Int, end: Int): CharSequence

Returns a subsequence of the content string of this CDATA node, starting from the specified start index and ending at the specified end index (exclusive).

Returns a subsequence of the content string of this CDATA node, starting from the specified start index and ending at the specified end index (exclusive).

Value parameters

end

the ending index of the subsequence, exclusive.

start

the starting index of the subsequence, inclusive.

Attributes

Returns

a CharSequence that is a subsequence of the content string.

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
CharSequence -> Any
def toXML: Try[String]

Converts the CDATA node with its content and surrounding context into an XML-compatible string.

Converts the CDATA node with its content and surrounding context into an XML-compatible string.

Attributes

Returns

a Try containing the resulting XML string, or a failure if the operation could not be completed.

Inherited methods

def chars(): IntStream

Attributes

Inherited from:
CharSequence
def codePoints(): IntStream

Attributes

Inherited from:
CharSequence
def isEmpty(): Boolean

Attributes

Inherited from:
CharSequence
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