org.sonatype.gshell.util.cli2
Class ArgumentDescriptor

java.lang.Object
  extended by org.sonatype.gshell.util.AnnotationDescriptor
      extended by org.sonatype.gshell.util.cli2.CliDescriptor
          extended by org.sonatype.gshell.util.cli2.ArgumentDescriptor

public class ArgumentDescriptor
extends CliDescriptor

Argument descriptor.

Since:
2.3
Author:
Jason Dillon

Field Summary
 
Fields inherited from class org.sonatype.gshell.util.AnnotationDescriptor
UNINITIALIZED_CHAR, UNINITIALIZED_CLASS, UNINITIALIZED_STRING
 
Constructor Summary
ArgumentDescriptor(Argument spec, Setter setter)
           
 
Method Summary
 int getIndex()
           
 Argument getSpec()
           
 String getSyntax()
           
 
Methods inherited from class org.sonatype.gshell.util.cli2.CliDescriptor
getDescription, getHandler, getHandlerType, getId, getMessageCode, getSetter, getToken, getTokenCode, getType, isArgument, isMultiValued, isOption, isRequired, renderHelpText, renderSyntax, renderToken
 
Methods inherited from class org.sonatype.gshell.util.AnnotationDescriptor
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArgumentDescriptor

public ArgumentDescriptor(Argument spec,
                          Setter setter)
Method Detail

getSpec

public Argument getSpec()

getIndex

public int getIndex()

getSyntax

public String getSyntax()
Specified by:
getSyntax in class CliDescriptor


Copyright © 2008-2011 Sonatype. All Rights Reserved.