org.basex.util
Class Args

java.lang.Object
  extended by org.basex.util.Args

public final class Args
extends Object

This class parses command-line arguments.

Author:
Workgroup DBIS, University of Konstanz 2005-10, ISC License, Christian Gruen

Constructor Summary
Args(String[] a)
          Default constructor.
 
Method Summary
 boolean dash()
          Checks if the current argument starts with a dash.
 boolean more()
          Checks if more arguments are available.
 char next()
          Returns the next character.
 int num()
          Returns the next number.
 String remaining()
          Returns the remaining string.
 String string()
          Returns the next string.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Args

public Args(String[] a)
Default constructor.

Parameters:
a - arguments
Method Detail

more

public boolean more()
Checks if more arguments are available.

Returns:
result of check

dash

public boolean dash()
Checks if the current argument starts with a dash.

Returns:
result of check

next

public char next()
Returns the next character.

Returns:
next character

string

public String string()
Returns the next string.

Returns:
string

num

public int num()
Returns the next number.

Returns:
number as int value

remaining

public String remaining()
Returns the remaining string.

Returns:
remaining string