SimpleMutableSchemaBasedValueProcessor

zio.schema.SimpleMutableSchemaBasedValueProcessor

A simpler version of MutableSchemaBasedValueProcessor without using any Context

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Abstract methods

protected def fail(message: String): Target
protected def processDictionary(schema: Map[_, _], value: Chunk[(Target, Target)]): Target
protected def processDynamic(value: DynamicValue): Option[Target]
protected def processEither(schema: Either[_, _], value: Either[Target, Target]): Target
protected def processEnum(schema: Enum[_], tuple: (String, Target)): Target
protected def processOption(schema: Optional[_], value: Option[Target]): Target
protected def processPrimitive(value: Any, typ: StandardType[Any]): Target
protected def processRecord(schema: Record[_], value: ListMap[String, Target]): Target
protected def processSequence(schema: Sequence[_, _, _], value: Chunk[Target]): Target
protected def processSet(schema: Set[_], value: Set[Target]): Target
protected def processTuple(schema: Tuple2[_, _], left: Target, right: Target): Target

Concrete methods

override protected def contextForEither(context: Unit, e: Either[Unit, Unit]): Unit

Gets the context for an either's left or right value within the parent context

Gets the context for an either's left or right value within the parent context

Attributes

Definition Classes
override protected def contextForEnumConstructor(context: Unit, index: Int, c: Case[_, _]): Unit

Gets the context for an enum's given constructor within the parent context

Gets the context for an enum's given constructor within the parent context

Attributes

Definition Classes
override protected def contextForMap(context: Unit, schema: Map[_, _], index: Int): Unit

Gets the context for a dictionary's given element within the parent context

Gets the context for a dictionary's given element within the parent context

Attributes

Definition Classes
override protected def contextForOption(context: Unit, o: Option[Unit]): Unit

Gets the context for an option's inner value within the parent context

Gets the context for an option's inner value within the parent context

Attributes

Definition Classes
override protected def contextForRecordField(context: Unit, index: Int, field: Field[_, _]): Unit

Gets the context for a record's given field within the parent context

Gets the context for a record's given field within the parent context

Attributes

Definition Classes
override protected def contextForSequence(context: Unit, schema: Sequence[_, _, _], index: Int): Unit

Gets the context for a sequence's given element within the parent context

Gets the context for a sequence's given element within the parent context

Attributes

Definition Classes
override protected def contextForSet(context: Unit, schema: Set[_], index: Int): Unit

Gets the context for a set's given element within the parent context

Gets the context for a set's given element within the parent context

Attributes

Definition Classes
override protected def contextForTuple(context: Unit, index: Int): Unit

Gets the context for a tuple's given field within the parent context

Gets the context for a tuple's given field within the parent context

Attributes

Definition Classes
override protected def fail(context: Unit, message: String): Target

Fails the processing

Fails the processing

Attributes

Definition Classes
override protected def processDictionary(context: Unit, schema: Map[_, _], value: Chunk[(Target, Target)]): Target
  • Process a dictionary using its already processed key-value pairs

Attributes

Definition Classes
override protected def processDynamic(context: Unit, value: DynamicValue): Option[Target]

Process a dynamic value. If the result is None it indicates that the processor has no built-in support for dynamic values, and the Dynamic value's schema should be used instead.

Process a dynamic value. If the result is None it indicates that the processor has no built-in support for dynamic values, and the Dynamic value's schema should be used instead.

Attributes

Definition Classes
override protected def processEither(context: Unit, schema: Either[_, _], value: Either[Target, Target]): Target

Process an either value using its already processed left or right value

Process an either value using its already processed left or right value

Attributes

Definition Classes
override protected def processEnum(context: Unit, schema: Enum[_], tuple: (String, Target)): Target

Process an enum in the given context with the given schema using the processed constructor value and it's name

Process an enum in the given context with the given schema using the processed constructor value and it's name

Attributes

Definition Classes
override protected def processOption(context: Unit, schema: Optional[_], value: Option[Target]): Target

Process an optional value using its already processed inner value, or None

Process an optional value using its already processed inner value, or None

Attributes

Definition Classes
override protected def processPrimitive(context: Unit, value: Any, typ: StandardType[Any]): Target

Process a primitive value

Process a primitive value

Attributes

Definition Classes
override protected def processRecord(context: Unit, schema: Record[_], value: ListMap[String, Target]): Target

Process a record in the given context with the given schema, using the already processed values of its fields.

Process a record in the given context with the given schema, using the already processed values of its fields.

Attributes

Definition Classes
override protected def processSequence(context: Unit, schema: Sequence[_, _, _], value: Chunk[Target]): Target

Process a sequence using its already processed elements

Process a sequence using its already processed elements

Attributes

Definition Classes
override protected def processSet(context: Unit, schema: Set[_], value: Set[Target]): Target

Process a set using its already processed elements

Process a set using its already processed elements

Attributes

Definition Classes
override protected def processTuple(context: Unit, schema: Tuple2[_, _], left: Target, right: Target): Target

Process a tuple using its already processed left and right values

Process a tuple using its already processed left and right values

Attributes

Definition Classes

Inherited methods

def process[A](schema: Schema[A], value: A): Target

Process a value based on it's schema

Process a value based on it's schema

Attributes

Inherited from:
MutableSchemaBasedValueProcessor
protected def startProcessingDictionary(context: Unit, schema: Map[_, _], size: Int): Unit

Called before processing a dictionary

Called before processing a dictionary

Attributes

Inherited from:
MutableSchemaBasedValueProcessor
protected def startProcessingEither(context: Unit, schema: Either[_, _]): Unit

Called before processing and either value

Called before processing and either value

Attributes

Inherited from:
MutableSchemaBasedValueProcessor
protected def startProcessingEnum(context: Unit, schema: Enum[_]): Unit

Called before processing an enum

Called before processing an enum

Attributes

Inherited from:
MutableSchemaBasedValueProcessor
protected def startProcessingOption(context: Unit, schema: Optional[_]): Unit

Called before processing an option value

Called before processing an option value

Attributes

Inherited from:
MutableSchemaBasedValueProcessor
protected def startProcessingRecord(context: Unit, schema: Record[_]): Unit

Called before processing a record (before calling processXYZ for the record's fields)

Called before processing a record (before calling processXYZ for the record's fields)

Attributes

Inherited from:
MutableSchemaBasedValueProcessor
protected def startProcessingSequence(context: Unit, schema: Sequence[_, _, _], size: Int): Unit

Called before processing a sequence

Called before processing a sequence

Attributes

Inherited from:
MutableSchemaBasedValueProcessor
protected def startProcessingSet(context: Unit, schema: Set[_], size: Int): Unit

Called before processing a set

Called before processing a set

Attributes

Inherited from:
MutableSchemaBasedValueProcessor
protected def startProcessingTuple(context: Unit, schema: Tuple2[_, _]): Unit

Called before processing a pair of values

Called before processing a pair of values

Attributes

Inherited from:
MutableSchemaBasedValueProcessor

Concrete fields

override protected val initialContext: Unit

The initial (top-level) context value

The initial (top-level) context value

Attributes