BaseModel
Direct Subclass:
Static Method Summary
Static Public Methods | ||
public static |
createRef(ref: *, obj: *): * creates owner Model reference on Proxied data object |
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public get |
handler: object: {"setPrototypeOf": *, "isExtensible": *, "preventExtensions": *, "getOwnPropertyDescriptor": *, "defineProperty": *, "has": *, "ownKeys": *, "apply": *} |
|
public get |
Getter for Model validation status for hierarchy |
|
public get |
Getter for Object.isFrozen status of this node and it's ancestors |
|
public get |
Getter for path to JSON Object for Model |
|
public get |
stub for model getter, overridden by Model sub-class |
|
public get |
Getter for Model's Unique Object ID |
|
public get |
options: any: * Get options (if any) for this model's schema todo: review for possible removal |
|
public get |
Getter for model's Model owner object |
|
public get |
Getter for Model's parent |
|
public get |
Getter for |
|
public get |
Getter for root element of Model hierarchy |
|
public get |
schema: *: * todo: add tests |
|
public get |
validationPath: string: * Provides formatted string for json-schema lookup |
Method Summary
Public Methods | ||
public |
Applies Object.freeze to model and triggers complete notification -- unlike Object.freeze, this prevents modification -- to all children in Model hierarchy |
|
public |
returns |
|
public |
resets Model to empty value |
|
public |
Subscribes handler method to observer for model |
|
public |
subscribeTo(path: *, func: *): object Subscribes handler method to property observer for path |
|
public |
toJSON(): * Provides JSON object representation of Model |
|
public |
Provides JSON String representation of Model |
|
public |
Tests value for validation without setting value to Model |
|
public |
valueOf(): * Raw value of this Model |
Static Public Methods
public static createRef(ref: *, obj: *): * source
creates owner Model reference on Proxied data object
Params:
Name | Type | Attribute | Description |
ref | * | ||
obj | * |
Return:
* |
Public Constructors
public constructor() source
Public Members
public get handler: object: {"setPrototypeOf": *, "isExtensible": *, "preventExtensions": *, "getOwnPropertyDescriptor": *, "defineProperty": *, "has": *, "ownKeys": *, "apply": *} source
public get isFrozen: boolean: * source
Getter for Object.isFrozen status of this node and it's ancestors
public get model: object | array | null: * source
stub for model getter, overridden by Model sub-class
public get options: any: * source
Get options (if any) for this model's schema todo: review for possible removal
Return:
any |
Public Methods
public freeze(): BaseModel source
Applies Object.freeze to model and triggers complete notification -- unlike Object.freeze, this prevents modification -- to all children in Model hierarchy
public pipeline(pipesOrSchemas: *): Pipeline source
returns pipeline
segment for process chaining
Params:
Name | Type | Attribute | Description |
pipesOrSchemas | * |
public subscribe(func: *): object source
Subscribes handler method to observer for model
Params:
Name | Type | Attribute | Description |
func | * |
public subscribeTo(path: *, func: *): object source
Subscribes handler method to property observer for path
Params:
Name | Type | Attribute | Description |
path | * | ||
func | * |