RuleBasedTransactionFactory

RuleBasedTransactionFactory

Rule based transaction factory.

Constructor

new RuleBasedTransactionFactory()

Source:

Classes

RuleBasedTransactionFactory

Members

rules :Map.<string, function()>

Description:
  • Map of rule names to transform functions.

Source:

Map of rule names to transform functions.

Type:
  • Map.<string, function()>

Methods

addArrayParser(name)

Description:
  • Creates array type parser, based on some existing element type parser.

Source:
Parameters:
Name Type Description
name string

Class name.

addEnumParser(name)

Description:
  • Creates enum type parser.

Source:
Parameters:
Name Type Description
name string

Class name.

addFlagsParser(name)

Description:
  • Creates flag type parser.

Source:
Parameters:
Name Type Description
name string

Class name.

addPodParser(name, PodClass)

Description:
  • Creates wrapper for SDK POD types.

Source:
Parameters:
Name Type Description
name string

Class name.

PodClass Constructable

Class type.

addStructParser(name)

Description:
  • Creates struct parser (to allow nested parsing).

Source:
Parameters:
Name Type Description
name string

Class name.

autodetect()

Description:
  • Autodetects rules using reflection.

Source:

createFromFactory(factory, descriptor) → {object}

Description:
  • Creates an entity from a descriptor using a factory.

Source:
Parameters:
Name Type Description
factory function

Factory function.

descriptor object

Entity descriptor.

Returns:

Newly created entity.

Type
object