com.application.areca.launcher.tui
Class UserCommandLine

java.lang.Object
  extended by com.application.areca.launcher.tui.UserCommandLine
All Implemented Interfaces:
CommandConstants

public class UserCommandLine
extends java.lang.Object
implements CommandConstants

Classe implementant une commande utilisateur

Author:
Olivier PETRUCCI

Areca Build ID : 7299034069467778562

Field Summary
 
Fields inherited from interface com.application.areca.launcher.tui.CommandConstants
COMMAND_BACKUP, COMMAND_CHECK, COMMAND_DELETE, COMMAND_DESCRIBE, COMMAND_MERGE, COMMAND_RECOVER, OPTION_CHECK_ALL, OPTION_CHECK_FILES, OPTION_CONFIG, OPTION_DATE, OPTION_DELAY, OPTION_DESTINATION, OPTION_DIFFERENTIAL_BACKUP, OPTION_FROM, OPTION_FULL_BACKUP, OPTION_KEEP_DELETED_ENTRIES, OPTION_SYNC, OPTION_TARGET, OPTION_TITLE, OPTION_TO
 
Constructor Summary
UserCommandLine(java.lang.String[] args)
           
 
Method Summary
 java.lang.String getCommand()
           
 java.lang.String getOption(UserOption option)
           
 boolean hasOption(UserOption option)
           
static void main(java.lang.String[] args)
           
 void parse()
           
 java.lang.String toString()
           
protected static boolean validateCommand(java.lang.String command)
          Checks that the command is valid.
protected  void validateStructure()
          Validates the mandatory options.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserCommandLine

public UserCommandLine(java.lang.String[] args)
Method Detail

parse

public void parse()
           throws InvalidCommandException
Throws:
InvalidCommandException

validateCommand

protected static boolean validateCommand(java.lang.String command)
Checks that the command is valid.


validateStructure

protected void validateStructure()
                          throws InvalidCommandException
Validates the mandatory options.

Throws:
InvalidCommandException

getCommand

public java.lang.String getCommand()

getOption

public java.lang.String getOption(UserOption option)

hasOption

public boolean hasOption(UserOption option)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

main

public static void main(java.lang.String[] args)