{
String name;
+ String label;
+
/*
* current value in string format, or "null" if undefined
*/
public Option(Option opt)
{
name = opt.name;
+ label = opt.label;
value = opt.value;
defvalue = opt.defvalue;
description = opt.description;
{
}
+ public Option(String name, String description, String label, boolean isrequired,
+ String defValue, String val, List<String> possibleVals, URL fdetails)
+ {
+ this(name, description, isrequired, defValue, val, possibleVals, fdetails);
+ this.label = label;
+ }
+
/**
* Constructor including display names for possible values
*
}
@Override
+ public String getLabel()
+ {
+ return label != null ? label : name;
+ }
+
+ @Override
public String getValue()
{
return value == null ? defvalue : value;