1 package com.lexicalscope.jewel.cli; 2 3 import com.lexicalscope.jewel.cli.specification.OptionSpecification; 4 5 interface TypedArguments 6 { 7 /** 8 * Get the value associated with a particular option 9 * 10 * @param specification the specification 11 * 12 * @return the value 13 */ 14 Object getValue(OptionSpecification specification); 15 16 /** 17 * Is here a value associated with a particular option 18 * 19 * @param specification the specification 20 * 21 * @return true iff there is a value available 22 */ 23 boolean contains(OptionSpecification specification); 24 25 /** 26 * @return the unparsed values if any 27 */ 28 Object getUnparsedValue(); 29 30 /** 31 * Is an unparsed argument specified 32 * 33 * @return is an unparsed argument specified 34 */ 35 boolean hasUnparsedValue(); 36 }