XmlType

zio.blocks.schema.xml.XmlType
See theXmlType companion object
sealed trait XmlType extends Xml => Boolean

A sealed trait representing the type of XML node.

Each case provides two type members:

  • Type: The corresponding Xml subtype (e.g., Xml.Element)
  • Unwrap: The underlying Scala type of the value

Attributes

Companion
object
Source
XmlType.scala
Graph
Supertypes
trait Xml => Boolean
class Object
trait Matchable
class Any
Known subtypes
object CData
object Comment
object Element
object Text

Members list

Type members

Types

type Type <: Xml

The corresponding Xml subtype for this XML type.

The corresponding Xml subtype for this XML type.

Attributes

Source
XmlType.scala
type Unwrap

The underlying Scala type of the value contained in this XML type.

The underlying Scala type of the value contained in this XML type.

Attributes

Source
XmlType.scala

Value members

Abstract methods

def typeIndex: Int

Returns the type index for ordering.

Returns the type index for ordering.

Attributes

Source
XmlType.scala

Concrete methods

override def apply(xml: Xml): Boolean

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

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

Attributes

Definition Classes
Function1
Source
XmlType.scala

Inherited methods

def andThen[A](g: Boolean => A): Xml => A

Composes two instances of Function1 in a new Function1, with this function applied first.

Composes two instances of Function1 in a new Function1, with this function applied first.

Type parameters

A

the result type of function g

Value parameters

g

a function R => A

Attributes

Returns

a new function f such that f(x) == g(apply(x))

Inherited from:
Function1
Source
Function1.scala
def compose[A](g: A => Xml): A => Boolean

Composes two instances of Function1 in a new Function1, with this function applied last.

Composes two instances of Function1 in a new Function1, with this function applied last.

Type parameters

A

the type to which function g can be applied

Value parameters

g

a function A => T1

Attributes

Returns

a new function f such that f(x) == apply(g(x))

Inherited from:
Function1
Source
Function1.scala
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
Function1 -> Any
Inherited from:
Function1
Source
Function1.scala