| | |
| | | * |
| | | * |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2012 ForgeRock AS |
| | | */ |
| | | package org.opends.server.util.cli; |
| | | |
| | |
| | | |
| | | ValidationCallback<Boolean> validator = new ValidationCallback<Boolean>() { |
| | | |
| | | @Override |
| | | public Boolean validate(ConsoleApplication app, String input) { |
| | | String ninput = input.toLowerCase().trim(); |
| | | if (ninput.length() == 0) { |
| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Display the batch progress string to the error stream, if we are not |
| | | * in quiet mode |
| | | * |
| | | * @param s |
| | | * The string to display |
| | | */ |
| | | public final void printlnBatchProgress(String s) { |
| | | if (!isQuiet()) |
| | | { |
| | | err.println(s); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Displays a message to the error stream indented by the specified |
| | |
| | | { |
| | | ValidationCallback<Integer> callback = new ValidationCallback<Integer>() |
| | | { |
| | | @Override |
| | | public Integer validate(ConsoleApplication app, String input) |
| | | throws CLIException |
| | | { |
| | |
| | | { |
| | | ValidationCallback<Integer> callback = new ValidationCallback<Integer>() |
| | | { |
| | | @Override |
| | | public Integer validate(ConsoleApplication app, String input) |
| | | throws CLIException |
| | | { |