uk.co.grahamcox.spring.cli
Class Arguments

java.lang.Object
  extended by uk.co.grahamcox.spring.cli.Arguments

public class Arguments
extends Object

Wrapper around the arguments to the application

Author:
graham

Constructor Summary
Arguments(String[] args)
          Create the wrapper
 
Method Summary
 String getArgument(int index)
          Get a specific argument
 String[] getArguments()
          Get the arguments themselves
 int getNumberOfArguments()
          Get the number of arguments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Arguments

public Arguments(String[] args)
Create the wrapper

Parameters:
args - the arguments
Method Detail

getArguments

public String[] getArguments()
Get the arguments themselves

Returns:
the arguments

getNumberOfArguments

public int getNumberOfArguments()
Get the number of arguments

Returns:
the number of arguments

getArgument

public String getArgument(int index)
Get a specific argument

Parameters:
index - the index of the argument to get
Returns:
the argument


Copyright © 2011. All Rights Reserved.