Class MaskFactoryTemplate
java.lang.Object
com.aquima.interactions.test.templates.resource.MaskFactoryTemplate
Template that can be used to create a mask factory.
- Since:
- 6.0
- Author:
- Jon van Leuven
-
Constructor Summary
ConstructorsConstructorDescriptionMaskFactoryTemplate
(SpellEngineTemplate spellEngineTemplate) Constuct a mask factory template. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a mask implementation to this factory template.com.aquima.interactions.portal.IMask
This method returns a mask for a specified mask type name.com.aquima.interactions.portal.IMaskFactory
This method converts the template to a mask factory implementation.
-
Constructor Details
-
MaskFactoryTemplate
Constuct a mask factory template.- Parameters:
spellEngineTemplate
- Spell engine to use for masks
-
-
Method Details
-
addMask
Add a mask implementation to this factory template.- Parameters:
maskTypeName
- Mask type name.mask
- Mask implementation.
-
getMask
This method returns a mask for a specified mask type name.- Parameters:
maskTypeName
- The mask type name to lookup the mask.- Returns:
- The mask implementation (null, if none found)
-
toFactory
public com.aquima.interactions.portal.IMaskFactory toFactory()This method converts the template to a mask factory implementation.- Returns:
- Mask factory implementation based on the template.
-