class SchemaValidator extends AnyRef

The schema validator.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SchemaValidator
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SchemaValidator(schemaVersion: Option[SchemaVersion] = None, formats: Map[String, SchemaFormat] = DefaultFormats.formats, resolverFactory: UrlStreamResolverFactory = UrlStreamResolverFactory(), cache: DocumentCache = DocumentCache())(implicit lang: Lang)

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. val DefaultVersion: SchemaVersion
  5. def addFormat(format: SchemaFormat): SchemaValidator

    Add a custom format

    Add a custom format

    format

    the custom format

    returns

    a new validator instance containing the custom format

  6. def addSchema(id: String, schema: SchemaType): SchemaValidator

    Add a schema.

    Add a schema.

    id

    the id of the schema

    schema

    the schema

  7. def addUrlHandler(handler: URLStreamHandler, scheme: String): SchemaValidator

    Add a URLStreamHandler that is capable of handling absolute with a specific scheme.

    Add a URLStreamHandler that is capable of handling absolute with a specific scheme.

    handler

    the UrlHandler to be added

    returns

    a new validator instance

  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. val cache: DocumentCache
  10. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. val formats: Map[String, SchemaFormat]
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. implicit val lang: Lang
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. val resolverFactory: UrlStreamResolverFactory
  22. val schemaVersion: Option[SchemaVersion]
  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. def validate[A](schema: SchemaType, input: A)(implicit arg0: Format[A]): JsResult[A]

    Convert the given value via the specified Format instance to a JsValue, validate it against the given schema and convert it back.

    Convert the given value via the specified Format instance to a JsValue, validate it against the given schema and convert it back.

    schema

    the schema to validate against

    input

    the value to be validated

    returns

    a JsResult holding the valid result

  26. def validate[A](schema: SchemaType, input: A, writes: Writes[A]): JsResult[JsValue]

    Convert the given value via the specified Writes instance to a JsValue and validate it against the schema.

    Convert the given value via the specified Writes instance to a JsValue and validate it against the schema.

    schema

    the schema to validate against

    input

    the value to be validated

    returns

    a JsResult holding the valid result

  27. def validate[A](schema: SchemaType, input: => JsValue, reads: Reads[A]): JsResult[A]

    Validate the given JsValue against the schema and convert the result via the specified Reads instance in case it has been successful.

    Validate the given JsValue against the schema and convert the result via the specified Reads instance in case it has been successful.

    schema

    the schema to validate against

    input

    the value to be validated

    returns

    a JsResult holding the validation result

  28. def validate(schema: SchemaType)(input: => JsValue): JsResult[JsValue]

    Validate the given JsValue against the given schema.

    Validate the given JsValue against the given schema.

    schema

    the schema to validate against

    input

    the value to be validated

    returns

    a JsResult holding the valid result

  29. def validate[A](schemaUrl: URL, input: A)(implicit arg0: Format[A]): JsResult[A]

    Convert the given value via the specified Format instance to a JsValue, validate it against the schema at the given URL, and convert it back.

    Convert the given value via the specified Format instance to a JsValue, validate it against the schema at the given URL, and convert it back.

    schemaUrl

    source from where to read the scheam from

    input

    the value to be validated

    returns

    a JsResult holding the valid result

  30. def validate[A](schemaSource: Source, input: A)(implicit arg0: Format[A]): JsResult[A]

    Convert the given value via the specified Format instance to a JsValue, validate it against the schema at the given URL, and convert it back.

    Convert the given value via the specified Format instance to a JsValue, validate it against the schema at the given URL, and convert it back.

    schemaSource

    source from where to read the scheam from

    input

    the value to be validated

    returns

    a JsResult holding the valid result

  31. def validate[A](schemaUrl: URL, input: => A, writes: Writes[A]): JsResult[JsValue]

    Convert the given value via the specified Writes instance to a JsValue and validate it against the schema located at the given URL.

    Convert the given value via the specified Writes instance to a JsValue and validate it against the schema located at the given URL.

    schemaUrl

    the URL from where to read the schema from

    input

    the value to be validated

    returns

    a JsResult holding the valid result

  32. def validate[A](schemaSource: Source, input: => A, writes: Writes[A]): JsResult[JsValue]

    Convert the given value via the specified Writes instance to a JsValue and validate it against the schema located at the given URL.

    Convert the given value via the specified Writes instance to a JsValue and validate it against the schema located at the given URL.

    schemaSource

    source from where to read the scheam from

    input

    the value to be validated

    returns

    a JsResult holding the valid result

  33. def validate[A](schemaUrl: URL, input: => JsValue, reads: Reads[A]): JsResult[A]

    Validate the given JsValue against the schema located at the given URL and convert the result via the specified Reads instance in case it has been successful.

    Validate the given JsValue against the schema located at the given URL and convert the result via the specified Reads instance in case it has been successful.

    schemaUrl

    the URL from where to read the schema from

    input

    the value to be validated

    returns

    a JsResult holding the validation result

  34. def validate[A](schemaSource: Source, input: => JsValue, reads: Reads[A]): JsResult[A]

    Validate the given JsValue against the schema located at the given URL and convert the result via the specified Reads instance in case it has been successful.

    Validate the given JsValue against the schema located at the given URL and convert the result via the specified Reads instance in case it has been successful.

    schemaSource

    source from where to read the schema from

    input

    the value to be validated

    returns

    a JsResult holding the validation result

  35. def validate(schemaSource: Source): (JsValue) => JsResult[JsValue]
  36. def validate(schemaUrl: URL): (JsValue) => JsResult[JsValue]
  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  39. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped