diff --git a/gclc/src/main/java/fr/bigeon/gclc/CommandRequestListener.java b/gclc/src/main/java/fr/bigeon/gclc/CommandRequestListener.java index e7705d1..3a0a5be 100644 --- a/gclc/src/main/java/fr/bigeon/gclc/CommandRequestListener.java +++ b/gclc/src/main/java/fr/bigeon/gclc/CommandRequestListener.java @@ -44,5 +44,8 @@ package fr.bigeon.gclc; * * @author Emmanuel Bigeon */ public interface CommandRequestListener { + /** Indicates that the given command was requested to the application + * + * @param command the command */ void commandRequest(String command); } diff --git a/gclc/src/main/java/fr/bigeon/gclc/command/CommandParameters.java b/gclc/src/main/java/fr/bigeon/gclc/command/CommandParameters.java index 4e79e68..968c440 100644 --- a/gclc/src/main/java/fr/bigeon/gclc/command/CommandParameters.java +++ b/gclc/src/main/java/fr/bigeon/gclc/command/CommandParameters.java @@ -45,13 +45,18 @@ import java.util.List; import java.util.Set; /**
- * TODO
+ * An object representing a collection of parameters. It is used for defaulting
+ * values.
*
* @author Emmanuel BIGEON */
public class CommandParameters {
+ /** Boolean arguments */
private final HashMap
- * TODO
+ * A command relying on the {@link CommandParameters} to store parameters values
*
* @author Emmanuel BIGEON */
public abstract class ParametrizedCommand extends Command {
+ /** If the command may use interactive prompting for required parameters that
+ * were not provided on execution */
private boolean interactive = true;
+ /** The manager */
protected final ConsoleManager manager;
+ /** The boolean parameters mandatory status */
private final Map
- * TODO
+/**
+ * Exception sent from the application when a command is added but the name of
+ * the command
*
- * @author Emmanuel BIGEON
- *
- */
+ * @author Emmanuel BIGEON */
public class InvalidCommandName extends Exception {
+ /**
+ *
+ */
+ private static final long serialVersionUID = 1L;
+
}