Class MappingComposer
java.lang.Object
com.aquima.interactions.mapping.impl.MappingComposer
- All Implemented Interfaces:
IMappingComposer
IMappingComposer implementation used by services.
- Since:
- 12.3
- Author:
- S. Wartenberg
-
Constructor Summary
ConstructorsConstructorDescriptionMappingComposer
(InferenceContext context, IComposerHandler handler, IComposer composer) Constructs an mapping composer with the required arguments. -
Method Summary
Modifier and TypeMethodDescriptionexpandAsset
(String assetName, String assetFormat) looks up a text (asset) for the specified name and returns the expanded content.forInstance
(IEntityInstance instance) This method returns a new element composer in which the specified instance is active.Looks up the text definition (also called an asset) for the specified name and returns the definition model.
-
Constructor Details
-
MappingComposer
Constructs an mapping composer with the required arguments.- Parameters:
context
- The inference context that should be used.handler
- Handler for container expanders.composer
- Composer.
-
-
Method Details
-
forInstance
Description copied from interface:IMappingComposer
This method returns a new element composer in which the specified instance is active.- Specified by:
forInstance
in interfaceIMappingComposer
- Parameters:
instance
- The instance that should be active in the new composer.- Returns:
- An element composer in which the provided instance is active.
-
expandAsset
Description copied from interface:IMappingComposer
looks up a text (asset) for the specified name and returns the expanded content. In case of an unknown element an exception is thrown- Specified by:
expandAsset
in interfaceIMappingComposer
- Parameters:
assetName
- The name of the text asset as defined in studio.assetFormat
- The asset format that should be used to locate the correct text content.- Returns:
- A asset object which is never null
-
getAsset
Description copied from interface:IMappingComposer
Looks up the text definition (also called an asset) for the specified name and returns the definition model.- Specified by:
getAsset
in interfaceIMappingComposer
- Parameters:
name
- The name of the text as defined in studio.- Returns:
- A text definition model which is never null
-