de.akquinet.chameria.services
Class ActivationUtils

java.lang.Object
  extended by de.akquinet.chameria.services.ActivationUtils

public class ActivationUtils
extends Object

Helper class to parse arguments. This class supports:

If the argument starts with '-', the given argument must contain it.


Constructor Summary
ActivationUtils()
           
 
Method Summary
static boolean containsArgument(String[] args, String arg)
          Checks if the arguments contains the argument arg.
static String getArgumentValue(String[] args, String arg)
          Gets the argument value.
static String getOpenArgument(String[] args)
          Gets the value of the '-open' argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivationUtils

public ActivationUtils()
Method Detail

containsArgument

public static boolean containsArgument(String[] args,
                                       String arg)
Checks if the arguments contains the argument arg.

Parameters:
args - the arguments
arg - the argument to find
Returns:
true if the

getArgumentValue

public static String getArgumentValue(String[] args,
                                      String arg)
Gets the argument value.

getOpenArgument

public static String getOpenArgument(String[] args)
Gets the value of the '-open' argument.

Parameters:
args - the arguments
Returns:
the value of the '-open' argument or null if not found.


Copyright © 2010-2011 akquinet A.G.. All Rights Reserved.