|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--phonebill.util.Parameters.Value
This inner class encapsulates the properties and value of a command line parameter.
Names of parameters are not supposed to contain dashes or any other form of
parameter prefix. A null
value represents parameters with only properties defined.
Field Summary | |
java.lang.String |
longName
The long name for this parameter. |
java.lang.String |
shortName
The short name for this parameter. |
int |
type
The type of parameter. |
protected java.lang.Object |
value
The value for this parameter. |
Constructor Summary | |
private |
Parameters.Value()
Fake constructor not intended for use, only for blocking use. |
|
Parameters.Value(java.lang.String name,
int type)
Constructs a Value object containing most of the properties of a parameter. |
|
Parameters.Value(java.lang.String shortName,
java.lang.String longName,
int type)
Constructs a Value object containing all the necessary properties of a parameter. |
|
Parameters.Value(java.lang.String shortName,
java.lang.String longName,
int type,
java.lang.Object value)
Constructs a Value object containing all the necessary properties and values of a parameter. |
Method Summary | |
java.lang.Object |
getValue()
Returns the current value for the parameter. |
boolean |
setValue(java.lang.Object value)
Sets the parameter value. |
Methods inherited from class java.lang.Object |
|
Field Detail |
public final java.lang.String shortName
public final java.lang.String longName
public final int type
protected java.lang.Object value
Constructor Detail |
private Parameters.Value()
public Parameters.Value(java.lang.String name, int type)
name
- the short name for this parameter.type
- the type of parameterpublic Parameters.Value(java.lang.String shortName, java.lang.String longName, int type)
shortName
- the short name for this parameter.longName
- the long name for this parameter.type
- the type of parameterpublic Parameters.Value(java.lang.String shortName, java.lang.String longName, int type, java.lang.Object value)
value
must conform to the setValue()
method.shortName
- the short name for this parameter.longName
- the long name for this parameter.type
- the type of parametervalue
- the value for this parameterMethod Detail |
public boolean setValue(java.lang.Object value)
value
- The new value of this parameter. Only instances of String, Number,
Boolean, Date or File are accepted as well as null
.public java.lang.Object getValue()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |