SeqMapping
com.greenfossil.data.mapping.SeqMapping
case class SeqMapping[A](tpe: String, typedValueOpt: Option[Seq[A]], constraints: Seq[Constraint[Seq[A]]], errors: Seq[MappingError], elemField: Mapping[A], minSize: Int, boundFields: Seq[Mapping[A]]) extends Mapping[Seq[A]]
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Alias for method field()
Attributes
- Definition Classes
Attributes
- Definition Classes
Attributes
- Definition Classes
def boundFieldsWithPadding(minReturnSize: Int)(mappingConversionFn: [A] => (x$1: Mapping[A], x$2: Int) => Mapping[A]): Seq[Mapping[A]]
Value parameters
- mappingConversionFn
-
- use assign the mapping.name based on the index number
- minReturnSize
-
size of for the return values and will be padded with elemMapping for the missing values
Attributes
- Returns
-
- at least the minReturnSize size of the Seq of Mapping
Attributes
- Returns
-
- number of value bound to Mapping For FieldMapping - min 0, max 1 ProductMapping - min 0, max 1 SeqMapping - min 0, max N - number of elements in the Seq TransformMapping - depends on the underlying Mapping[A]
Value parameters
- index
-
- the index for the bound value
Attributes
- Returns
-
None or Option[A]
- Definition Classes
Attributes
- Definition Classes
Attributes
- Definition Classes
Attributes
- Definition Classes
Attributes
- Definition Classes
Attributes
- Returns
-
- the number of Mapping fields For FieldMapping/SeqMapping = 1, ProductMapping = N fields, TransformMapping - depends on the underlying Mapping[A]
- Definition Classes
Attributes
- Definition Classes
Attributes
- Definition Classes
Attributes
- Definition Classes
Attributes
- Definition Classes
Attributes
- Definition Classes
Attributes
- Definition Classes
Adds an error to this form
Inherited methods
Attributes
- Inherited from:
- ConstraintVerifier
Attributes
- Inherited from:
- ConstraintVerifier
Attributes
- Inherited from:
- Mapping
Attributes
- Inherited from:
- Mapping
Retrieve the first error for this key.
Retrieve the first error for this key.
Value parameters
- key
-
field name.
Attributes
- Inherited from:
- Mapping
Retrieve all errors for this key.
Retrieve all errors for this key.
Value parameters
- key
-
field name.
Attributes
- Inherited from:
- Mapping
Attributes
- Inherited from:
- Mapping
Retrieves all global errors, i.e. errors without a key.
Retrieves all global errors, i.e. errors without a key.
Attributes
- Returns
-
all global errors
- Inherited from:
- Mapping
Attributes
- Inherited from:
- ConstraintVerifier
Returns true
if there is an error related to this form.
Attributes
- Inherited from:
- Mapping
Attributes
- Inherited from:
- Mapping
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Mapping
inline def transform[B](forwardFn: Seq[A] => B, inverseFn: B => Seq[A], mappingErrorsFilter: (Seq[MappingError], Seq[MappingError]) => Seq[MappingError]): TransformMapping[A, B]
Attributes
- Inherited from:
- Mapping
inline def transform[B](inline forwardFn: Seq[A] => B, inline inverseFn: B => Seq[A]): TransformMapping[A, B]
Attributes
- Inherited from:
- Mapping
Value parameters
- successConstraintPredicate
-
- true implies no error, false implies error
Attributes
- Inherited from:
- ConstraintVerifier
Attributes
- Inherited from:
- ConstraintVerifier
Adds an error to this form
Adds an error to this form
Value parameters
- args
-
Error message arguments
- key
-
Error key
- message
-
Error message
Attributes
- Inherited from:
- Mapping
Adds a global error to this form
Adds a global error to this form
Value parameters
- args
-
Error message arguments
- message
-
Error message
Attributes
- Inherited from:
- Mapping
In this article