1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/java/sql-dk/src/info/globalcode/sql/dk/InfoLister.java Mon Dec 16 15:15:32 2013 +0100
1.3 @@ -0,0 +1,39 @@
1.4 +package info.globalcode.sql.dk;
1.5 +
1.6 +import java.io.PrintStream;
1.7 +import java.util.EnumSet;
1.8 +
1.9 +/**
1.10 + * Displays info like help, version etc.
1.11 + *
1.12 + * @author Ing. František Kučera (frantovo.cz)
1.13 + */
1.14 +public class InfoLister {
1.15 +
1.16 + public void showInfo(EnumSet<CLIOptions.INFO_TYPE> infoTypes, PrintStream out) {
1.17 + for (CLIOptions.INFO_TYPE infoType : infoTypes) {
1.18 + switch (infoType) {
1.19 + /**
1.20 + * TODO: implement show info
1.21 + */
1.22 + case FORMATTERS:
1.23 + out.println("TODO: list available formatters");
1.24 + break;
1.25 + case HELP:
1.26 + out.println("TODO: show some help");
1.27 + break;
1.28 + case LICENSE:
1.29 + out.println("TODO: show license");
1.30 + break;
1.31 + case TYPES:
1.32 + out.println("TODO: list supported types");
1.33 + break;
1.34 + case VERSION:
1.35 + out.println("TODO: show version");
1.36 + break;
1.37 + default:
1.38 + throw new IllegalArgumentException("Unsupported INFO_TYPE: " + infoType);
1.39 + }
1.40 + }
1.41 + }
1.42 +}