com.jeantessier.commandline
Interface CommandLineSwitch

All Superinterfaces:
Visitable
All Known Implementing Classes:
CommandLineSwitchBase

public interface CommandLineSwitch
extends Visitable

How the CommandLine parses and validates the switches on the command-line.


Method Summary
 java.lang.Object getDefaultValue()
           
 java.lang.Object getValue()
           
 boolean isMandatory()
           
 boolean isPresent()
           
 int parse(java.lang.String name, java.lang.String value)
           
 void setValue(java.lang.Object value)
           
 
Methods inherited from interface com.jeantessier.commandline.Visitable
accept
 

Method Detail

getDefaultValue

public java.lang.Object getDefaultValue()

getValue

public java.lang.Object getValue()

setValue

public void setValue(java.lang.Object value)

isPresent

public boolean isPresent()

isMandatory

public boolean isMandatory()

parse

public int parse(java.lang.String name,
                 java.lang.String value)
          throws CommandLineException


Dependency Finder 1.1.0 © 2001-2004 Jean Tessier.