serialization/json/builders/SchemaBuilder.js
/**
		 * Adds a new {@link Component} to the schema, using a {@link ComponentBuilder}
		 * and returns the current instance.
		 *
		 * @public
		 * @param {String} name - The name of the new component.
		 * @param {Function} callback - A callback to which the {@link ComponentBuilder} is passed synchronously.
		 * @returns {SchemaBuilder}
		 */
Adds a new  Component to the schema, using a  ComponentBuilder
and returns the current instance.

@public
@param {String} name - The name of the new component.
@param {Function} callback - A callback to which the  ComponentBuilder is passed synchronously.
Adds a new Component to the schema using a ComponentBuilder and returns the current instance . @public @param { String } name - The name of the new component . @param { Function } callback - A callback to which the ComponentBuilder is passed synchronously .
withComponentBuilder(name, callback) {
			assert.argumentIsRequired(name, 'name', String);
			const componentBuilder = new ComponentBuilder(name);
			callback(componentBuilder);
			return this.withComponent(componentBuilder.component);
		}
withComponentBuilder ( name , callback ) { assert . argumentIsRequired ( name , 'name' , String ) ; const componentBuilder = new ComponentBuilder ( name ) ; callback ( componentBuilder ) ; return this . withComponent ( componentBuilder . component ) ; }
Adds a new {@link Component} to the schema, using a {@link ComponentBuilder}
 and returns the current instance.
Adds a new { @link Component } to the schema using a { @link ComponentBuilder } and returns the current instance .