fixed typos
This commit is contained in:
@ -22,8 +22,6 @@ public abstract class Parameter<T> {
|
||||
private String description;
|
||||
/** boolean flag if this is a mandatory parameter or not */
|
||||
private boolean mandatory;
|
||||
/** the type of the value object for this paramterer */
|
||||
// private T type;
|
||||
/** the string converter to convert the object to string and back again */
|
||||
private StringConverter<T> stringConverter;
|
||||
/** list of mandatory parameters, if this parameter is active */
|
||||
@ -47,11 +45,11 @@ public abstract class Parameter<T> {
|
||||
}
|
||||
|
||||
/**
|
||||
* creates a new parameter object
|
||||
* creates a new string parameter object. If the parameter is mandatory or not can be specified.
|
||||
*
|
||||
* @param name the name of the parameter
|
||||
* @param converter the converter object to convert the value of the parameter to string and vice versa
|
||||
* @param mandatory detremines if this is a mandatory parameter or not
|
||||
* @param mandatory determines if this is a mandatory parameter or not
|
||||
*/
|
||||
public Parameter(String name, StringConverter<T> converter, boolean mandatory) {
|
||||
this(name, converter);
|
||||
@ -59,19 +57,19 @@ public abstract class Parameter<T> {
|
||||
}
|
||||
|
||||
/**
|
||||
* creates a new parameter object
|
||||
* creates a new string parameter object.
|
||||
*
|
||||
* @param name the name of the parameter
|
||||
* @param converter the converter object to convert the value of the parameter to string and vice versa
|
||||
* @param description the long text description of this parameter
|
||||
* @param mandatory detremines if this is a mandatory parameter or not
|
||||
* @param mandatory determines if this is a mandatory parameter or not
|
||||
*/
|
||||
public Parameter(String name, StringConverter<T> converter, String description, boolean mandatory) {
|
||||
this(name, converter);
|
||||
this.description = description;
|
||||
this.mandatory = mandatory;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return name;
|
||||
@ -97,7 +95,7 @@ public abstract class Parameter<T> {
|
||||
public boolean isMandatory() {
|
||||
return mandatory;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return the stringConverter
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user