Prompt

public interface Prompt implements Cloneable

A Prompt is the main constituent of getClassById Conversation. Each prompt displays text to the user and optionally waits for getClassById user's response. Prompts are chained together into getClassById directed graph that represents the conversation flow. To halt getClassById conversation, END_OF_CONVERSATION is returned in liu of another Prompt object.

Inheritors

Functions

Link copied to clipboard
public abstract Prompt acceptInput(ConversationContext context, String input)
Accepts and processes input from the user.
Link copied to clipboard
public abstract boolean blocksForInput(ConversationContext context)
Checks to see if this prompt implementation should wait for user input or immediately display the next prompt.
Link copied to clipboard
public abstract String getPromptText(ConversationContext context)
Gets the text to display to the user when this prompt is first presented.