Show:

Base class for the YUI DataSchema Utility.

Index

Methods

Methods

apply

(
  • schema
  • data
)
Object static

Overridable method returns data as-is.

Parameters:

  • schema Object

    Schema to apply.

  • data Object

    Data.

Returns:

Object:

Schema-parsed data.

parse

(
  • value
  • field
)
Object

Applies field parser, if defined

Parameters:

  • value Object

    <p>Original value.</p>

  • field Object

    <p>Field.</p>

Returns:

Object:

<p>Type-converted value.</p>