de.goerntkai.toolbox.cmdln
Interface CommandLineParameter


public interface CommandLineParameter

Represents a parameter given in the command line. This parameter may be an option or an argument.

Version:
$Id: CommandLineParameter.java,v 1.2 2007/05/01 17:08:23 GoerntKai Exp $
Author:
Kai Görnt

Method Summary
 java.lang.String getValue()
          Returns the parameters value as a String.
 boolean isSet()
          Returns true when this parameter was set in the command line, false otherwise.
 

Method Detail

getValue

public java.lang.String getValue()

Returns the parameters value as a String. Unary options may return "true" or "false". Unary options should better be asked if set.

Returns:
the value of this parameter

isSet

public boolean isSet()

Returns true when this parameter was set in the command line, false otherwise. Unary options are used this way.

Returns:
wether this parameter was set in the command line


Copyright © 2004-2007 Kai Görnt. All Rights Reserved.