ca.sqlpower.architect
Class AlwaysOKUserPrompter

java.lang.Object
  extended by ca.sqlpower.architect.AlwaysOKUserPrompter
All Implemented Interfaces:
UserPrompter

public class AlwaysOKUserPrompter
extends java.lang.Object
implements UserPrompter

A simple implementation of UserPrompter that is not a user prompter at all. Always says OK. This is normally used as a default for when we run headless.


Nested Class Summary
 
Nested classes/interfaces inherited from interface ca.sqlpower.architect.UserPrompter
UserPrompter.UserPromptResponse
 
Constructor Summary
AlwaysOKUserPrompter()
           
 
Method Summary
 UserPrompter.UserPromptResponse promptUser(java.lang.Object... formatArgs)
          Obtains the decision for how a given operation should proceed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlwaysOKUserPrompter

public AlwaysOKUserPrompter()
Method Detail

promptUser

public UserPrompter.UserPromptResponse promptUser(java.lang.Object... formatArgs)
Description copied from interface: UserPrompter
Obtains the decision for how a given operation should proceed. When possible, this will be done by prompting the user. If there is no user available (for example, in a headless environment), a reasonable default response will be provided.

Specified by:
promptUser in interface UserPrompter
Parameters:
formatArgs - The arguments to the insert into the format string in the question. See MessageFormat for details.


Copyright © 2003-2007 SQL Power Group Inc. www.sqlpower.ca