OpenAPI 1.0

com.aquafold.openapi
Interface AQConsole


public interface AQConsole

This interface provides methods for input/output to a console. An instance of this interface is available to aquascripts via aqua.console alias.


Method Summary
 void list(Object collection)
          Lists an AQDataSet, Collection, Enumeration, Iterator, a java array, or a javascript object in human-readable form.
 void print(String text)
          Prints a string to the console, without appending a newline.
 void println(String text)
          Prints a string to the console, followed by a newline.
 String readLine(String prompt)
          Presents the user with an entry dialog allowing to enter a line of text.
 String readPassword(String prompt)
          Presents the user with an entry dialog allowing to enter a password.
 

Method Detail

print

void print(String text)
Prints a string to the console, without appending a newline.

Parameters:
text - String to print.

println

void println(String text)
Prints a string to the console, followed by a newline.

Parameters:
text - String to print.

list

void list(Object collection)
Lists an AQDataSet, Collection, Enumeration, Iterator, a java array, or a javascript object in human-readable form.
Individual elements are presented via their toString() representation.

Parameters:
collection -

readLine

String readLine(String prompt)
Presents the user with an entry dialog allowing to enter a line of text. This method may return null if user console input is not possible, such as in the server environment.

Parameters:
prompt - Text to display in the input dialog.

readPassword

String readPassword(String prompt)
Presents the user with an entry dialog allowing to enter a password. This method may return null if user console input is not possible, such as in the server environment.

Parameters:
prompt - Text to display in the input dialog.

OpenAPI 1.0


Copyright © 2010 AquaFold, Inc. All Rights Reserved. Use is subject to license terms.