public Object convert(ArgumentParserImpl parser, String value) throws ArgumentParserException { Object obj = type_.convert(parser, this, value); if (choice_ != null && !choice_.contains(obj)) { throw new ArgumentParserException(String.format( TextHelper.LOCALE_ROOT, localize("invalidChoiceError"), value, choice_.textualFormat()), parser, this); } return obj; }
public Object convert(ArgumentParserImpl parser, String value) throws ArgumentParserException { Object obj = type_.convert(parser, this, value); if (choice_ != null && !choice_.contains(obj)) { throw new ArgumentParserException(String.format( TextHelper.LOCALE_ROOT, localize("invalidChoiceError"), value, choice_.textualFormat()), parser, this); } return obj; }