Class: RecordTypesLibraryFactory

x2node-records~ RecordTypesLibraryFactory

Record types library factory.

new RecordTypesLibraryFactory()

Note: The constructor is not accessible from the client code. Instances of the factory are created by module's createLibraryFactory() function.

Methods


addExtension(extension)

Add record types library extension to the factory.
Parameters:
Name Type Description
extension module:x2node-records.Extension The extension.
Returns:
This factory.
Type
module:x2node-records~RecordTypesLibraryFactory

buildLibrary(libraryDef)

Build record types library using the provided definitions.
Parameters:
Name Type Description
libraryDef Object Library definition object including record type definitions.
Throws:
If any record type definitions are found invalid.
Type
module:x2node-common.X2UsageError
Returns:
Record types library.
Type
module:x2node-records~RecordTypesLibrary