|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.calfater.mailcarbon.util.Parameter
public class Parameter
This class helps to obtain informations from the command line.
| Constructor Summary | |
|---|---|
Parameter(java.lang.String[] args)
The constructor. |
|
| Method Summary | |
|---|---|
boolean |
exists(java.lang.String key)
Verify if the key exists in parameters. |
boolean |
exists(java.lang.String[] keys)
Verify if one of the keys exists in parameters. |
java.lang.String |
getValue(java.lang.String key)
Get the value associated with a key. |
java.lang.String |
getValue(java.lang.String[] keys)
Get the value associated with a key list |
java.lang.String |
getValue(java.lang.String[] keys,
java.lang.String defaultValue)
Get the value associated with a key list |
java.lang.String |
getValue(java.lang.String key,
java.lang.String defaultValue)
Get the value associated with a key |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Parameter(java.lang.String[] args)
args - command line arguments.| Method Detail |
|---|
public boolean exists(java.lang.String[] keys)
keys - a list of key name
public boolean exists(java.lang.String key)
key - the key's name
public java.lang.String getValue(java.lang.String key)
key - The name of the parameter.
public java.lang.String getValue(java.lang.String[] keys)
keys - a list of key name
public java.lang.String getValue(java.lang.String key,
java.lang.String defaultValue)
key - the key namedefaultValue - the default value
public java.lang.String getValue(java.lang.String[] keys,
java.lang.String defaultValue)
key - the key namedefaultValue - the default value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||