public abstract class NumericPrompt extends TextValidatingPrompt
| Constructor and Description |
|---|
NumericPrompt() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
accept(ConversationContext context,
Number input) |
protected boolean |
accept(ConversationContext context,
TextContent input) |
protected SendableMessage |
invalidationMessage(ConversationContext context,
TextContent input) |
protected abstract SendableMessage |
invalidInputMessage(ConversationContext context,
TextContent input) |
protected abstract SendableMessage |
notNumericMessage(ConversationContext context,
TextContent input) |
protected Number |
parseNumber(String text) |
protected boolean |
validate(ConversationContext context,
TextContent input) |
protected abstract boolean |
validateNumber(ConversationContext context,
Number input) |
processtypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconversationEnded, promptMessageprotected boolean validate(ConversationContext context, TextContent input)
protected SendableMessage invalidationMessage(ConversationContext context, TextContent input)
protected boolean accept(ConversationContext context, TextContent input)
protected abstract boolean validateNumber(ConversationContext context, Number input)
protected abstract boolean accept(ConversationContext context, Number input)
protected abstract SendableMessage invalidInputMessage(ConversationContext context, TextContent input)
protected abstract SendableMessage notNumericMessage(ConversationContext context, TextContent input)
Copyright © 2016. All rights reserved.