joptsimple
Class RequiredArgumentOptionSpec<V>

java.lang.Object
  extended by joptsimple.AbstractOptionSpec<V>
      extended by joptsimple.ArgumentAcceptingOptionSpec<V>
          extended by joptsimple.RequiredArgumentOptionSpec<V>
Type Parameters:
V - represents the type of the arguments this option accepts
All Implemented Interfaces:
OptionSpec<V>

 class RequiredArgumentOptionSpec<V>
extends ArgumentAcceptingOptionSpec<V>

Specification of an option that accepts a required argument.

Version:
$Id: RequiredArgumentOptionSpec.java,v 1.14 2009/03/06 20:35:08 pholser Exp $
Author:
Paul Holser

Constructor Summary
RequiredArgumentOptionSpec(java.util.Collection<java.lang.String> options, java.lang.String description)
           
RequiredArgumentOptionSpec(java.lang.String option)
           
 
Method Summary
(package private)  void accept(OptionSpecVisitor visitor)
           
protected  void detectOptionArgument(OptionParser parser, ArgumentList arguments, OptionSet detectedOptions)
           
 
Methods inherited from class joptsimple.ArgumentAcceptingOptionSpec
acceptsArguments, addArguments, argumentDescription, canConvertArgument, convert, describedAs, equals, handleOption, hashCode, isArgumentOfNumberType, ofType, requiresArgument, typeIndicator, withValuesConvertedBy, withValuesSeparatedBy
 
Methods inherited from class joptsimple.AbstractOptionSpec
description, options, toString, value, values
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RequiredArgumentOptionSpec

RequiredArgumentOptionSpec(java.lang.String option)

RequiredArgumentOptionSpec

RequiredArgumentOptionSpec(java.util.Collection<java.lang.String> options,
                           java.lang.String description)
Method Detail

detectOptionArgument

protected void detectOptionArgument(OptionParser parser,
                                    ArgumentList arguments,
                                    OptionSet detectedOptions)
Specified by:
detectOptionArgument in class ArgumentAcceptingOptionSpec<V>

accept

void accept(OptionSpecVisitor visitor)
Specified by:
accept in class AbstractOptionSpec<V>