Type
Indirect Subclass:
The base type that all view and data types inherit from. This provides basic parsing functionality that can be overriden and used by the child types.
Static Member Summary
Static Public Members | ||
public static |
typeName: * The type name. |
Static Method Summary
Static Public Methods | ||
public static |
Parses a JS or Immutable.js object into a type. |
|
public static |
parseOneOrMany(parseField: func): oneOrManyParser Creates a one or many parser with the passed in field parser. |
|
public static |
parseOptions(field: Immutable.Map, parseField: function): Immutable.Map Override this function if you want the type to reference other types. |
Static Public Members
public static typeName: * source
The type name. This must be overridden so that the type can be registered.
Static Public Methods
public static parse(field: object | Immutable.Map, parseField: function): Type source
Parses a JS or Immutable.js object into a type.
public static parseOneOrMany(parseField: func): oneOrManyParser source
Creates a one or many parser with the passed in field parser.
Params:
Name | Type | Attribute | Description |
parseField | func | The field parsing functon to use. |
public static parseOptions(field: Immutable.Map, parseField: function): Immutable.Map source
Override this function if you want the type to reference other types.
Params:
Name | Type | Attribute | Description |
field | Immutable.Map | The field to parse. |
|
parseField | function | A function to parse a child type. |
Return:
Immutable.Map | The modified field object. |