Packages

  • package root
    Definition Classes
    root
  • package com
    Definition Classes
    root
  • package wix
    Definition Classes
    com
  • package accord

    The entry-point to the Accord library.

    The entry-point to the Accord library.

    Overview

    An Accord validator is a typeclass, which adds data validation rules over an existing domain model. The api module deals with the usage site; details on how to define validators can be found in the core module.

    To use a validator, simply import this package, make sure the validator is in scope and use the validate function:

    scala> import com.wix.accord._
    import com.wix.accord._
    
    scala> import MyDomain._
    import MyDomain._
    
    scala> val person = Person( name = "Niklaus", surname = "Wirth", age = 81 )
    person: MyDomain.Person = Person(Niklaus,Wirth,81)
    
    scala> validate( person )
    res0: com.wix.accord.Result = Success

    See Result, Success and Failure for details of the result model.

    Definition Classes
    wix
  • object Descriptions
    Definition Classes
    accord
  • AccessChain
  • AssociativeDescription
  • Branch
  • Conditional
  • Description
  • Explicit
  • Generic
  • Indexed
  • Path
  • PatternMatch

case class Indexed(index: Long) extends AssociativeDescription with Product with Serializable

Denotes an index access (e.g. accessing the nth element of an array).

Linear Supertypes
Serializable, Serializable, Product, Equals, AssociativeDescription, Description, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Indexed
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AssociativeDescription
  7. Description
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Indexed(index: Long)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  8. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  9. val index: Long
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  13. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  15. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AssociativeDescription

Inherited from Description

Inherited from AnyRef

Inherited from Any

Ungrouped