Comment

zio.blocks.schema.xml.Xml.Comment
final case class Comment(value: String) extends Xml

Represents an XML comment.

Attributes

Source
Xml.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Xml
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def as(xmlType: XmlType): Option[xmlType.Type]

Narrows this XML node to the specified type, returning Some if the types match or None otherwise. The return type is path-dependent on the xmlType parameter.

Narrows this XML node to the specified type, returning Some if the types match or None otherwise. The return type is path-dependent on the xmlType parameter.

Attributes

Definition Classes
Xml
Source
Xml.scala
override def typeIndex: Int

Returns the type index for ordering.

Returns the type index for ordering.

Attributes

Definition Classes
Xml
Source
Xml.scala
override def unwrap(xmlType: XmlType): Option[xmlType.Unwrap]

Extracts the underlying value from this XML if it matches the specified type. The return type is path-dependent on the xmlType parameter.

Extracts the underlying value from this XML if it matches the specified type. The return type is path-dependent on the xmlType parameter.

Attributes

Definition Classes
Xml
Source
Xml.scala
override def xmlType: XmlType

Returns the XmlType of this XML node.

Returns the XmlType of this XML node.

Attributes

Definition Classes
Xml
Source
Xml.scala

Inherited methods

def is(xmlType: XmlType): Boolean

Returns true if this XML node is of the specified type.

Returns true if this XML node is of the specified type.

Attributes

Inherited from:
Xml
Source
Xml.scala
def printPretty: String

Renders this XML to a pretty-printed string (2-space indentation).

Renders this XML to a pretty-printed string (2-space indentation).

Attributes

Inherited from:
Xml
Source
Xml.scala
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
Source
Product.scala
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
Source
Product.scala

Creates an XmlSelection from this XML node for fluent navigation.

Creates an XmlSelection from this XML node for fluent navigation.

Attributes

Inherited from:
Xml
Source
Xml.scala