net.sourceforge.atunes
Class ApplicationArguments

java.lang.Object
  extended by net.sourceforge.atunes.ApplicationArguments

public class ApplicationArguments
extends java.lang.Object

This class defines accepted arguments by application.


Field Summary
static java.lang.String ALLOW_MULTIPLE_INSTANCE
          Disable multiple instances control.
static java.lang.String DEBUG
          Debug constant This argument makes a big log file.
static java.lang.String IGNORE_LOOK_AND_FEEL
          Ignore look and feel constant This argument makes application use OS default Look And Feel.
static java.lang.String NO_UPDATE
          Do not try to update the application (usefull for Linux packages).
static java.lang.String USE_CONFIG_FOLDER
          Argument to define a custom folder from which to read configuration.
 
Constructor Summary
ApplicationArguments()
           
 
Method Summary
static java.lang.String getSavedArguments()
          Returns a string with saved arguments
static java.lang.String getUserConfigFolder(java.util.List<java.lang.String> args)
          Finds USE_CONFIG_FOLDER at argument list and gets value.
static void saveArguments(java.util.List<java.lang.String> arguments)
          Save arguments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

public static final java.lang.String DEBUG
Debug constant This argument makes a big log file.

See Also:
Constant Field Values

IGNORE_LOOK_AND_FEEL

public static final java.lang.String IGNORE_LOOK_AND_FEEL
Ignore look and feel constant This argument makes application use OS default Look And Feel.

See Also:
Constant Field Values

ALLOW_MULTIPLE_INSTANCE

public static final java.lang.String ALLOW_MULTIPLE_INSTANCE
Disable multiple instances control.

See Also:
Constant Field Values

USE_CONFIG_FOLDER

public static final java.lang.String USE_CONFIG_FOLDER
Argument to define a custom folder from which to read configuration.

See Also:
Constant Field Values

NO_UPDATE

public static final java.lang.String NO_UPDATE
Do not try to update the application (usefull for Linux packages).

See Also:
Constant Field Values
Constructor Detail

ApplicationArguments

public ApplicationArguments()
Method Detail

getUserConfigFolder

public static java.lang.String getUserConfigFolder(java.util.List<java.lang.String> args)
Finds USE_CONFIG_FOLDER at argument list and gets value.

Parameters:
args - the args
Returns:
the user config folder

saveArguments

public static void saveArguments(java.util.List<java.lang.String> arguments)
Save arguments. All arguments defined in this class must be saved

Parameters:
arguments -

getSavedArguments

public static java.lang.String getSavedArguments()
Returns a string with saved arguments

Returns:


Copyright © 2006-2008 The aTunes Team. All Rights Reserved.