public Option add ( String name ) throws RequiredParametersException { if ( ! this . data . containsKey ( name ) ) { Option option = new Option ( name ) ; this . data . put ( name , option ) ; return option ; } else { throw new RequiredParametersException ( "Option with key " + name + " already exists." ) ; } }
Add a parameter based on its name .