Class MaskFactoryTemplate

java.lang.Object
com.aquima.interactions.test.templates.resource.MaskFactoryTemplate

public class MaskFactoryTemplate extends Object
Template that can be used to create a mask factory.
Since:
6.0
Author:
Jon van Leuven
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constuct a mask factory template.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addMask(String maskTypeName, com.aquima.interactions.portal.IMask mask)
    Add a mask implementation to this factory template.
    com.aquima.interactions.portal.IMask
    getMask(String maskTypeName)
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MaskFactoryTemplate

      public MaskFactoryTemplate(SpellEngineTemplate spellEngineTemplate)
      Constuct a mask factory template.
      Parameters:
      spellEngineTemplate - Spell engine to use for masks
  • Method Details

    • addMask

      public void addMask(String maskTypeName, com.aquima.interactions.portal.IMask mask)
      Add a mask implementation to this factory template.
      Parameters:
      maskTypeName - Mask type name.
      mask - Mask implementation.
    • getMask

      public com.aquima.interactions.portal.IMask getMask(String maskTypeName)
      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.