public class MArgs extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT
Constant
DEFAULT="" |
| Constructor and Description |
|---|
MArgs(String[] args)
Use the argument array to parse arguments.
|
MArgs(String[] args,
String[] pUsage)
Constructor for MArgs.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(String name)
Returns true if the argument list contains the key.
|
protected List<String> |
getArgValues(String name)
Returns a List of the arguments for the given key.
|
Set<String> |
getKeys()
Return a iterable set of existing keys.
|
int |
getSize(String name)
Returns the amount of attributes for this key.
|
String |
getValue(String name,
int index)
Returns the "index" parameter for this key.
|
String |
getValue(String name,
String def,
int index)
Returns the "index" parameter for this key.
|
String[] |
getValues(String name)
Return all values for this parameter as a array.
|
String |
toString() |
public static final String DEFAULT
DEFAULT=""public MArgs(String[] args)
args - an array of String objects.public boolean contains(String name)
name - a String object.protected List<String> getArgValues(String name)
public int getSize(String name)
name - a String object.public String getValue(String name, String def, int index)
public String getValue(String name, int index)
public String[] getValues(String name)
Copyright © 2016. All Rights Reserved.