Package com.google.gerrit.server.schema
Interface UpdateUI
-
public interface UpdateUI
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isBatch()
void
message(String message)
void
pruneSchema(com.google.gwtorm.server.StatementExecutor e, List<String> pruneList)
String
readString(String defaultValue, Set<String> allowedValues, String message)
Prompts the user for a string, suggesting a default.void
waitForUser()
Prints a message asking the user to let us know when it's safe to continue.boolean
yesno(boolean defaultValue, String message)
Requests the user to answer a yes/no question.
-
-
-
Method Detail
-
message
void message(String message)
-
yesno
boolean yesno(boolean defaultValue, String message)
Requests the user to answer a yes/no question.
-
waitForUser
void waitForUser()
Prints a message asking the user to let us know when it's safe to continue.
-
readString
String readString(String defaultValue, Set<String> allowedValues, String message)
Prompts the user for a string, suggesting a default.- Returns:
- the chosen string from the list of allowed values.
-
isBatch
boolean isBatch()
-
-