added default value for StringParameters
This commit is contained in:
@ -17,6 +17,16 @@ public class StringParameter extends Parameter<String> {
|
||||
super(name, new StringStringConverter(), true);
|
||||
}
|
||||
|
||||
/**
|
||||
* creates a new mandatory parameter object using default string converter
|
||||
*
|
||||
* @param name the name of the parameter
|
||||
*/
|
||||
public StringParameter(String name, String defaultValue) {
|
||||
super(name, new StringStringConverter(), true);
|
||||
this.defaultValue = defaultValue;
|
||||
}
|
||||
|
||||
/**
|
||||
* creates a new mandatory parameter object
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user