AliasPathResolver Class

  • java.lang.Object
    • com.microsoft.bot.dialogs.memory.pathresolvers.AliasPathResolver

Implements

public class AliasPathResolver
implements PathResolver

Maps aliasXXX to path.xxx ($foo to dialog.foo).

Constructor Summary

Constructor Description
AliasPathResolver(String alias, String prefix, String postfix)

Method Summary

Modifier and Type Method and Description
java.lang.String getAlias()
protected java.lang.Boolean isPathChar(char ch)
java.lang.String transformPath(String path)

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

AliasPathResolver

public AliasPathResolver(String alias, String prefix, String postfix)

Parameters:

alias - Alias name.
prefix - Prefix name.
postfix - Postfix name.

Method Details

getAlias

public String getAlias()

Returns:

Gets the alias name.

isPathChar

protected Boolean isPathChar(char ch)

Parameters:

ch - Character to verify.

Returns:

true if the character is valid for a path; otherwise, false.

transformPath

public String transformPath(String path)

Parameters:

path - Path to transform.

Returns:

The transformed path.

Applies to