PyContentMappingBuilder
class PyContentMappingBuilder(content_mapping_builder)
Bases: object
Default IContentMappingBuilder implementation.
- Parameters: content_mapping_builder (IContentMappingBuilder)
__init__(content_mapping_builder)
Default init.
Args: : content_mapping_builder: An object with methods to build IContentMapping”
Returns: None.
- Parameters: content_mapping_builder (IContentMappingBuilder)
- Return type: None
Methods
__init__ (content_mapping_builder) |
Default init. |
---|---|
add (input_0[, input_1]) |
Adds an object or function to execute mappings. |
build () |
Builds an immutable collection from the currently added mappings. |
by_content_type () |
Gets the currently registered hook factories by their content types. |
clear () |
Removes all currently registered mappings. |
add(input_0, input_1=None)
Adds an object or function to execute mappings.
Args:
: input_0: Either:
: 1. The mapping type to execute, or
2. The content type for a callback function
input_1: Either:
: 1. The callback function to execute, or
2. None
Returns: : The same mapping builder object for fluent API calls.
- Parameters:
- input_0 (type)
- input_1 (Callable | None)
- Return type: Self
build()
Builds an immutable collection from the currently added mappings.
Returns: : The created collection.
- Return type: PyMigrationHookFactoryCollection
by_content_type()
Gets the currently registered hook factories by their content types.
Returns: : The hook factories by their content types.
clear()
Removes all currently registered mappings.
Returns: : The same mapping builder object for fluent API calls
- Return type: Self