public static class StoryDefinitionExtended.DefaultImpls
Helper methods for StoryDefinition implementation.
Usually direct implementations are enums.
This interface add a starter (and main) intent with intent name equals to the property of value name
to the interface StoryDefinition.
Warning: advanced usage only.
name,
interface StoryDefinition@NotNull public static java.util.Set<ai.tock.bot.definition.IntentAware> getOtherStarterIntents(StoryDefinitionExtended $this)
@NotNull public static java.util.Set<ai.tock.bot.definition.IntentAware> getSecondaryIntents(StoryDefinitionExtended $this)
@NotNull public static StoryStep<T>[] getStepsArray(StoryDefinitionExtended $this)
StoryStep implementation could be an enum
@NotNull public static java.util.Set<ai.tock.bot.definition.StoryStep> getSteps(StoryDefinitionExtended $this)
The root steps of the story.
@Nullable public static ai.tock.translator.UserInterfaceType getUnsupportedUserInterface(StoryDefinitionExtended $this)
@NotNull public static java.util.Set<ai.tock.translator.UserInterfaceType> getUnsupportedUserInterfaces(StoryDefinitionExtended $this)
When this story does not support all UserInterfaceTypes.
@NotNull public static java.lang.String getId(StoryDefinitionExtended $this)
An unique identifier for a given bot.
@NotNull public static java.util.Set<ai.tock.bot.definition.Intent> getStarterIntents(StoryDefinitionExtended $this)
One or more intents that start the story. Usually, you don't have the same starter intent in two different story definition.
@NotNull public static java.util.Set<ai.tock.bot.definition.Intent> getIntents(StoryDefinitionExtended $this)
The complete list of intents supported by the story.
public static boolean isStarterIntent(StoryDefinitionExtended $this, @NotNull Intent intent)
Is the specified intent is a starter intent?
public static boolean supportIntent(StoryDefinitionExtended $this, @NotNull Intent intent)
Is the specified intent is supported by this story?
@NotNull public static Intent mainIntent(StoryDefinitionExtended $this)
The "referent" intent for this story.
@NotNull public static Intent wrappedIntent(StoryDefinitionExtended $this)
Implementation for interface IntentAware.
interface IntentAware@NotNull public static java.util.Set<ai.tock.bot.definition.StoryStep> allSteps(StoryDefinitionExtended $this)
@NotNull public static IntentWithoutNamespace intentWithoutNamespace(StoryDefinitionExtended $this)
public static boolean wrap(StoryDefinitionExtended $this, @Nullable Intent intent)
Is it the right intent?