advxml.core.data

Type members

Classlikes

trait AsValidable[V]
case
class AttributeData(key: Key, value: SimpleValue)
Companion
object
Companion
class
trait Converter[-A, B]

Represents a function A => B to simplify method and class signatures. This alias represent a converter to transform A into B.

Represents a function A => B to simplify method and class signatures. This alias represent a converter to transform A into B.

Type Params
A

Contravariant input object type

B

Output object type

Companion
object
object Converter
Companion
class
final case
class Key(value: String) extends AnyVal with Serializable
Companion
object
object Key
Companion
class
case
class KeyValuePredicate(key: Key, valuePredicate: SimpleValue => Boolean)
object OptionConverter extends FixedBiConverterOps[Option, OptionConverter]
object Predicate
case
class SimpleValue(data: String, ref: Option[String]) extends Value with Comparable[SimpleValue]
Companion
object
object SimpleValue extends SimpleValueLowPriorityInstances
Companion
class
object ValidatedConverter extends FixedBiConverterOps[ValidatedNelThrow, ValidatedConverter]
case
class ValidatedValue(data: String, rules: NonEmptyList[ValidationRule], ref: Option[String]) extends Value
Companion
object
Companion
class
class ValidationRule(val name: String, val validator: String => Boolean, val errorReason: String)
Companion
object
Companion
class
sealed
Companion
object
object Value
Companion
class
trait ValueExtractor[F[_], V <: Value]
Companion
object
Companion
class
object XmlDecoder extends FixedLeftConverterOps[ValidatedNelThrow, NodeSeq, XmlDecoder]
object XmlEncoder extends FixedRightConverterOps[ValidatedNelThrow, NodeSeq, XmlEncoder]

Types

@implicitNotFound("Missing implicit Converter instance to covert ${A} into ${B}")
type As[-A, B] = Converter[A, B]

Syntactic sugar. To use ase A As B instead of classic method Converter[A, B]

Syntactic sugar. To use ase A As B instead of classic method Converter[A, B]

type EitherNelThrow[+T] = EitherNel[Throwable, T]
type EitherThrow[+T] = Either[Throwable, T]
@implicitNotFound("Missing implicit OptionConverter instance to covert ${A} into Option[${B}].")
type OptionConverter[-A, B] = Converter[A, Option[B]]

Represents a function A => Option[B] to simplify method and class signatures. Because the conversion can fail the output is wrapped into Option in order to handle the empty case.

Represents a function A => Option[B] to simplify method and class signatures. Because the conversion can fail the output is wrapped into Option in order to handle the empty case.

Type Params
A

Contravariant input object type

B

Output object type

type ThrowableNel = NonEmptyList[Throwable]
@implicitNotFound("Missing implicit ValidatedConverter instance to covert ${A} into ValidatedNelThrow[${B}]")

Represents a function A => ValidatedThrow[B] to simplify method and class signatures. Because the conversion can fail the output is wrapped into cats ValidatedNelThrow in order to handle the errors.

Represents a function A => ValidatedThrow[B] to simplify method and class signatures. Because the conversion can fail the output is wrapped into cats ValidatedNelThrow in order to handle the errors.

Type Params
A

Contravariant input object type

B

Output object type

type ValidatedNelThrow[+T] = ValidatedNel[Throwable, T]
type ValidatedThrow[+T] = Validated[Throwable, T]
@implicitNotFound("Missing implicit XmlDecoder instance to covert NodeSeq into ValidatedNelThrow[${T}].")
type XmlDecoder[T] = ValidatedConverter[NodeSeq, T]

This is just an alias for advxml.core.data.ValidatedConverter parametrized with NodeSeq on left side.

This is just an alias for advxml.core.data.ValidatedConverter parametrized with NodeSeq on left side.

Type Params
T

Output object type

@implicitNotFound("Missing implicit XmlDecoder instance to covert ${T} into ValidatedNelThrow[NodeSeq].")
type XmlEncoder[T] = ValidatedConverter[T, NodeSeq]

This is just an alias for advxml.core.data.ValidatedConverter parametrized with NodeSeq on right side.

This is just an alias for advxml.core.data.ValidatedConverter parametrized with NodeSeq on right side.

Type Params
T

Contravariant input object type

type XmlPredicate = NodeSeq => Boolean