Function
Static Public Summary | ||
public |
Hookable decorator for RESTful API |
|
public |
|
|
public |
Validator for IP address |
|
public |
|
|
public |
|
|
public |
Range(min: Number, max: Number, step: Number): ModelValueHandler |
|
public |
is(condition: Function | RegExp | Array | ModelValueHandler, defaultValue: *): function(meta: DecoratorDescriptor): void Field Decorator to validate the value of Setter |
|
public |
|
|
public |
Hook listener |
|
public |
mapGetter(meta: DecoratorDescriptor) Class Decorator to set same name Getters of existed Setters |
|
public |
Hook trigger |
|
public |
|
|
public |
* walkPrototype(object: *) |
Static Public
public HTTP(method: String, path: String, contentType: String): function(meta: DecoratorDescriptor): void source
import {HTTP} from 'data-scheme/source/hook/index.js'
Hookable decorator for RESTful API
public HTTP_URL(value: *, key: String, data: Model) source
import {HTTP_URL} from 'data-scheme/source/scheme/index.js'
public IPA(value: *, key: String, data: Model) source
import {IPA} from 'data-scheme/source/scheme/index.js'
Validator for IP address
public IPv4(value: *, key: String, data: Model) source
import {IPv4} from 'data-scheme/source/scheme/index.js'
Test:
public IPv6(value: *, key: String, data: Model) source
import {IPv6} from 'data-scheme/source/scheme/index.js'
Test:
public Range(min: Number, max: Number, step: Number): ModelValueHandler source
import {Range} from 'data-scheme/source/scheme/index.js'
public is(condition: Function | RegExp | Array | ModelValueHandler, defaultValue: *): function(meta: DecoratorDescriptor): void source
import {is} from 'data-scheme/source/validator.js'
Field Decorator to validate the value of Setter
Params:
Name | Type | Attribute | Description |
condition | Function | RegExp | Array | ModelValueHandler | ||
defaultValue | * |
|
public isClass(func: Function): Boolean source
import {isClass} from 'data-scheme/source/utility/index.js'
Params:
Name | Type | Attribute | Description |
func | Function |
public listen(name: String, handler: function(data: Object): void) source
import {listen} from 'data-scheme/source/hook/index.js'
Hook listener
public mapGetter(meta: DecoratorDescriptor) source
import {mapGetter} from 'data-scheme/source/Model.js'
Class Decorator to set same name Getters of existed Setters
Params:
Name | Type | Attribute | Description |
meta | DecoratorDescriptor |
public trigger(name: String, data: Object) source
import {trigger} from 'data-scheme/source/hook/index.js'
Hook trigger
public typeOf(object: *): String source
import {typeOf} from 'data-scheme/source/utility/index.js'
Params:
Name | Type | Attribute | Description |
object | * |
public * walkPrototype(object: *) source
import {walkPrototype} from 'data-scheme/source/utility/index.js'
Params:
Name | Type | Attribute | Description |
object | * |