package ie.dcu.segment.options; /** * A textual (string) segmentation algorithm parameter. * * @author Kevin McGuinness */ public class TextOption extends AbstractOption { /** * Create a text option with the given name, description, and default * value. * * @param name * The option name * @param description * A description of the option * @param def * The default value for the option */ public TextOption(String name, String description, String def) { super(OptionType.Text, name, description, def); } public Conversion convert(Object value) { return valid(value.toString()); } }