Copyright 2002 by aragost

com.aragost.util.cmdline
Class Option

java.lang.Object
  |
  +--com.aragost.util.cmdline.Option

public class Option
extends java.lang.Object


Constructor Summary
Option(char shortName, java.lang.String longName, java.lang.String explanation, java.lang.Class type)
          Creates new Option
 
Method Summary
 java.lang.String getDescription()
           
 java.lang.String getExplanation()
          Getter for property explanation.
 java.lang.String getLongName()
          Getter for property longName.
 java.lang.String getLongNameWithArg()
           
 char getShortName()
          Getter for property shortName.
 java.lang.Class getType()
          Getter for property type.
 boolean needsValue()
           
 void setExplanation(java.lang.String explanation)
          Setter for property explanation.
 void setLongName(java.lang.String longName)
          Setter for property longName.
 void setShortName(char shortName)
          Setter for property shortName.
 void setType(java.lang.Class type)
          Setter for property type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Option

public Option(char shortName,
              java.lang.String longName,
              java.lang.String explanation,
              java.lang.Class type)
Creates new Option

Method Detail

getShortName

public char getShortName()
Getter for property shortName.

Returns:
Value of property shortName.

setShortName

public void setShortName(char shortName)
Setter for property shortName.

Parameters:
shortName - New value of property shortName.

getLongName

public java.lang.String getLongName()
Getter for property longName.

Returns:
Value of property longName.

setLongName

public void setLongName(java.lang.String longName)
Setter for property longName.

Parameters:
longName - New value of property longName.

getExplanation

public java.lang.String getExplanation()
Getter for property explanation.

Returns:
Value of property explanation.

setExplanation

public void setExplanation(java.lang.String explanation)
Setter for property explanation.

Parameters:
explanation - New value of property explanation.

getLongNameWithArg

public java.lang.String getLongNameWithArg()

needsValue

public boolean needsValue()

getDescription

public java.lang.String getDescription()

getType

public java.lang.Class getType()
Getter for property type.

Returns:
Value of property type.

setType

public void setType(java.lang.Class type)
Setter for property type.

Parameters:
type - New value of property type.

Copyright 2002 by aragost