org.qbproject.schema

QBPartialValidator

object QBPartialValidator extends QBValidator with PartialValidator

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. QBPartialValidator
  2. PartialValidator
  3. QBValidator
  4. JsValidationVisitor
  5. JsVisitor
  6. Visitor
  7. JsDefaultValueProcessor
  8. JsValueProcessor
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val annotationProcessors: Map[Class[_], AnnotationProcessor]

    The annotation-based processors.

    The annotation-based processors.

    Definition Classes
    JsValueProcessor
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def atArray(schema: QBArray, elements: Seq[JsValue], path: QBPath, jsArray: JsArray): JsResult[JsArray]

    Called when the visitor encounters an array.

    Called when the visitor encounters an array.

    schema

    the array schema

    elements

    the computed result for each element of the array

    path

    the current path

    jsArray

    the matched array

    returns

    a JsResult containing a JsArray

    Definition Classes
    JsValidationVisitorJsVisitorVisitor
  9. def atObject(schema: QBClass, fields: Seq[(String, JsValue)], path: QBPath, jsObject: JsObject): JsResult[JsObject]

    Called when the visitor encounters an object.

    Called when the visitor encounters an object.

    schema

    the object schema

    fields

    the computed result for each field of the object

    path

    the current path

    jsObject

    the matched object

    returns

    a JsResult containing a JsObject

    Definition Classes
    JsValidationVisitorJsVisitorVisitor
  10. def atPrimitive[A <: JsValue](schema: QBPrimitiveType[A], jsValue: A, path: QBPath): JsResult[JsValue]

    Called when the value processor encounters a primitive value, that is, a number, a string or a boolean.

    Called when the value processor encounters a primitive value, that is, a number, a string or a boolean.

    A

    the actual primitive type which must be a subtype of JsValue

    schema

    the schema of a primitive type

    jsValue

    the matched primitive JsValue

    path

    the current path

    returns

    a JsResult containing a JsValue result

    Definition Classes
    JsValidationVisitorJsVisitorVisitor
  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def createAnnotationProcessors: Map[Class[_], AnnotationProcessor]

    Allows clients to register annotation-based processors.

    Allows clients to register annotation-based processors. By default, no processors are registered.

    returns

    a map containing annotation-based processors, where keys are based on annotation types and values are actual annotation-based processors

    Definition Classes
    JsDefaultValueProcessorJsValueProcessor
  13. def createTypeProcessors: Map[Class[_], TypeProcessor]

    Allows clients to register type-based processors.

    Allows clients to register type-based processors. By default, no processors are registered.

    returns

    a map containing type-based processors, where keys are based on QB types and values are actual type processors

    Definition Classes
    JsDefaultValueProcessorJsValueProcessor
  14. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  19. def ignoreMissingFields: Boolean

    Definition Classes
    PartialValidator
  20. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  24. def process(schema: QBType, path: QBPath, input: JsValue): JsResult[JsValue]

    Processor dispatch method.

    Processor dispatch method.

    schema

    the current schema

    path

    the current path

    input

    the current JsValue

    returns

    a JsResult containing a result of type O

    Definition Classes
    JsValueProcessor
  25. def process(schema: QBType)(input: JsValue): JsResult[JsValue]

    Top-level entry point for calling the value processor.

    Top-level entry point for calling the value processor.

    schema

    the QB schema

    input

    the JsValue instance that should be compared against the schema

    returns

    a JsResult containing a result of type O

    Definition Classes
    JsValueProcessor
  26. def processArray(schema: QBArray, path: QBPath, arr: JsArray): JsResult[JsValue]

    Process an array.

    Process an array.

    schema

    the schema of the array

    path

    the current path

    arr

    the matched JsArray

    returns

    a JsResult containing a result of type O

    Definition Classes
    JsValueProcessor
  27. def processBoolean(schema: QBBoolean, path: QBPath, bool: JsBoolean): JsResult[JsValue]

    Process a boolean.

    Process a boolean.

    schema

    the schema of the matched boolean

    path

    the matched path

    bool

    the matched instance

    returns

    a JsResult containing a result of type O

    Definition Classes
    JsValueProcessor
  28. def processInteger(schema: QBInteger, path: QBPath, int: JsNumber): JsResult[JsValue]

    Process an integer.

    Process an integer.

    schema

    the schema of the matched integer

    path

    the matched path

    int

    the matched instance

    returns

    a JsResult containing a result of type O

    Definition Classes
    JsValueProcessor
  29. def processNumber(schema: QBNumber, path: QBPath, number: JsNumber): JsResult[JsValue]

    Process a number.

    Process a number.

    schema

    the schema of the matched number

    path

    the matched path

    number

    the matched instance

    returns

    a JsResult containing a result of type O

    Definition Classes
    JsValueProcessor
  30. def processObject(schema: QBClass, path: QBPath, obj: JsObject): JsResult[JsValue]

    Process an object.

    Process an object.

    schema

    the schema of the object

    path

    the current path

    obj

    the matched JsObject

    returns

    a JsResult containing a result of type O

    Definition Classes
    JsValueProcessor
  31. def processOneOf(schema: QBOneOf, path: QBPath, obj: JsObject): JsResult[JsValue]

    Process an one of object constraint.

    Process an one of object constraint.

    Definition Classes
    JsValueProcessor
  32. def processString(schema: QBString, path: QBPath, str: JsString): JsResult[JsValue]

    Visit a string.

    Visit a string.

    schema

    the schema of the matched string

    path

    the matched path

    str

    the matched instance

    returns

    a JsResult containing a result of type O

    Definition Classes
    JsValueProcessor
  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  34. def toString(): String

    Definition Classes
    AnyRef → Any
  35. val typeProcessors: Map[Class[_], TypeProcessor]

    The type-based processors.

    The type-based processors.

    Definition Classes
    JsValueProcessor
  36. def validate(schema: QBClass)(input: JsObject): JsResult[JsObject]

    Definition Classes
    QBValidator
  37. def validateJsValue(schema: QBType)(input: JsValue): JsResult[JsValue]

    Definition Classes
    QBValidator
  38. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from PartialValidator

Inherited from QBValidator

Inherited from JsValidationVisitor

Inherited from JsVisitor

Inherited from Visitor[JsValue]

Inherited from JsDefaultValueProcessor

Inherited from JsValueProcessor[JsValue]

Inherited from AnyRef

Inherited from Any

Ungrouped