Namespace ax
root namespace for appspresso javascript api
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
root namespace for appspresso javascript api.
|
Method Summary
Namespace Detail
ax
root namespace for appspresso javascript api.
Field Detail
<static>
ax.ABORT_ERR
Defined in: ax_error.js.
<static>
ax.DOMSTRING_SIZE_ERR
Defined in: ax_error.js.
<static>
ax.HIERARCHY_REQUEST_ERR
Defined in: ax_error.js.
<static>
ax.INDEX_SIZE_ERR
Defined in: ax_error.js.
<static>
ax.INUSE_ATTRIBUTE_ERR
Defined in: ax_error.js.
<static>
ax.INUSE_STATE_ERR
Defined in: ax_error.js.
<static>
ax.INVALID_ACCESS_ERR
Defined in: ax_error.js.
<static>
ax.INVALID_CHARACTER_ERR
Defined in: ax_error.js.
<static>
ax.INVALID_MODIFICATION_ERR
Defined in: ax_error.js.
<static>
ax.INVALID_VALUES_ERR
Defined in: ax_error.js.
<static>
ax.IO_ERR
Defined in: ax_error.js.
<static> <constant>
ax.MODE_DEBUG
runMode for DEBUG. verbose log messages and error checks.
<static> <constant>
ax.MODE_RELEASE
runMode for RELEASE. less logs messages and error checks.
<static>
ax.NAMESPACE_ERR
Defined in: ax_error.js.
<static>
ax.NETWORK_ERR
Defined in: ax_error.js.
<static>
ax.NO_DATA_ALLOWED_ERR
Defined in: ax_error.js.
<static>
ax.NO_MODIFICATION_ALLOWED_ERR
Defined in: ax_error.js.
<static>
ax.NOT_AVAILABLE_ERR
Defined in: ax_error.js.
<static>
ax.NOT_FOUND_ERR
Defined in: ax_error.js.
<static>
ax.NOT_SUPPORTED_ERR
Defined in: ax_error.js.
<static>
ax.runMode
ax.MODE_DEBUG or ax.MODE_RELEASE.
<static>
ax.SECURITY_ERR
Defined in: ax_error.js.
<static>
ax.SYNTAX_ERR
Defined in: ax_error.js.
<static>
ax.SYSTEM_ERR
Defined in: ax_error.js.
<static>
ax.TIMEOUT_ERR
Defined in: ax_error.js.
<static>
ax.TYPE_MISMATCH_ERR
Defined in: ax_error.js.
<static>
ax.UNEXPECTED_ERR
Defined in: ax_error.js.
<static>
ax.UNKNOWN_ERR
Defined in: ax_error.js.
<static>
ax.VALIDATION_ERR
Defined in: ax_error.js.
<static>
ax.WRONG_DOCUMENT_ERR
Defined in: ax_error.js.
Method Detail
-
<static> ax.assert(condition, message)assert condition.
- Parameters:
- {boolean} condition
- {string} message
-
<static> ax.debug(text, var_args)log for internal developer.
- Parameters:
- {string} text
- {...*} var_args
-
define/decorate an object with additional constants, properties and methods with a chain of method calls. to define a new object:
var obj = ax.def().constant(...).property(...).method(...).end();to decorate an existing object:ax.def(obj).constant(...).property(...).method(...).end();- Parameters:
- {object} target
- (optional)
- Returns:
- {AxDef}
-
factory method to create new "AxError" object.
Defined in: ax_error.js.- Parameters:
- {number} code
- (optional. default: -1)
- {string} message
- (optional. default: "<
>") - {Error} cause
- (optional. default: null)
-
<static> {boolean} ax.isArray(arg)check whether "arg" is "array".
- Parameters:
- {*} arg
- Returns:
- {boolean}
-
<static> {boolean} ax.isArrayLike(arg)check whether "arg" is "array-like"(NodeList, arguments, ... and so on).
- Parameters:
- {*} arg
- Returns:
- {boolean}
-
<static> {boolean} ax.isBoolean(arg)check whether "arg" is "boolean".
- Parameters:
- {*} arg
- Returns:
- {boolean}
-
<static> {boolean} ax.isError(err)check whether "err" is "AxError" object.
Defined in: ax_error.js.- Parameters:
- {object} err
- Deprecated:
-
use
err instanceof ax.AxError - Returns:
- {boolean}
- See:
- AxError
-
<static> {boolean} ax.isFunction(arg)check whether "arg" is "function".
- Parameters:
- {*} arg
- Returns:
- {boolean}
-
<static> {boolean} ax.isNumber(arg)check whether "arg" is "number".
- Parameters:
- {*} arg
- Returns:
- {boolean}
-
<static> {boolean} ax.isObject(arg)check whether "arg" is "object".
- Parameters:
- {*} arg
- Returns:
- {boolean}
-
<static> {boolean} ax.isPlugin(obj)check where "obj" is "AxPlugin" object.
Defined in: ax_plugin.js.- Parameters:
- {object} obj
- Returns:
- {boolean}
-
<static> {boolean} ax.isRequest(req)check whether "req" is "AxRequest" object.
Defined in: ax_request.js.- Parameters:
- {AxRequest} req
- Returns:
- {boolean}
- See:
- AxRequest
-
<static> {boolean} ax.isString(arg)check whether "arg" is "string".
- Parameters:
- {*} arg
- Returns:
- {boolean}
-
<static> ax.log(text, var_args)log for plugin developer.
ax.log('1 token, 0 args ({0})'); // 1 token, 0 args ({0}) ax.log('1 token, 1 args ({0})', 'arg1'); // 1 token, 1 args (arg1) ax.log('1 tokens, 2 args ({0})', 'arg1', 'arg2'); // 1 tokens, 2 args (arg1) ax.log('2 tokens, 2 args ({0},{1})', 'arg1', 'arg2'); // 2 tokens, 2 args (arg1,arg2) ax.log('2 tokens swapped, 2 args ({1},{0})', 'arg1', 'arg2'); // 2 tokens swapped, 2 args (arg2,arg1) ax.log('4 tokens interwoven, 2 args ({0},{1},{0},{1})', 'arg1', 'arg2'); // 4 tokens interwoven, 2 args (arg1,arg2,arg1,arg2)- Parameters:
- {string} text
- {...*} var_args
-
<static> ax.nop()no operation. used for dummy callback.
-
factory method to create new "AxPlugin" object.
Defined in: ax_plugin.js.- Parameters:
- {string} name
- {object} obj
- {string} ns
- (optional)
- Returns:
- {AxPlugin}
-
factory methtod to create new "AxRequest" object.
Defined in: ax_request.js.- Parameters:
- {string} method
- {array} params
