Class IdentityRuntimeKeyMapper

  • All Implemented Interfaces:
    com.aquima.interactions.composer.IRuntimeKeyPrinter, IRuntimeKeyMapper, IRuntimeKeyParser

    public class IdentityRuntimeKeyMapper
    extends Object
    implements IRuntimeKeyMapper, com.aquima.interactions.composer.IRuntimeKeyPrinter, IRuntimeKeyParser
    Runtime key mapper that uses the default string representation of the key
    Since:
    10.4
    Author:
    j.koehoorn
    • Constructor Detail

      • IdentityRuntimeKeyMapper

        public IdentityRuntimeKeyMapper()
    • Method Detail

      • getPrinter

        public com.aquima.interactions.composer.IRuntimeKeyPrinter getPrinter​(com.aquima.interactions.composer.IPage page)
        Description copied from interface: IRuntimeKeyMapper
        This method returns a runtime key printer to convert a runtime key to a string.
        Specified by:
        getPrinter in interface IRuntimeKeyMapper
        Parameters:
        page - The page containing the elements with runtime keys.
        Returns:
        The runtime key printer, never null.
      • getParser

        public IRuntimeKeyParser getParser​(com.aquima.interactions.composer.IPage page)
        Description copied from interface: IRuntimeKeyMapper
        This method returns a runtime key parser to convert a string to a runtime key.
        Specified by:
        getParser in interface IRuntimeKeyMapper
        Parameters:
        page - The page containing the elements with runtime keys.
        Returns:
        The runtime key parser, never null.
      • printRuntimeKey

        public String printRuntimeKey​(com.aquima.interactions.composer.RuntimeKey key)
        Specified by:
        printRuntimeKey in interface com.aquima.interactions.composer.IRuntimeKeyPrinter
      • parse

        public com.aquima.interactions.composer.RuntimeKey parse​(String key)
        Description copied from interface: IRuntimeKeyParser
        This method parses the string and returns the runtime key.
        Specified by:
        parse in interface IRuntimeKeyParser
        Parameters:
        key - The key to parse.
        Returns:
        The resulting runtime key, may be null when the key could not be parsed.