dfki.util.application
Class Option

java.lang.Object
  |
  +--dfki.util.application.Option

public class Option
extends java.lang.Object
implements java.lang.Cloneable


Field Summary
static boolean MULTIPLE
           
static boolean NEEDS_VALUE
           
static boolean NESESSARY
           
static boolean NOT_NESESSARY
           
static boolean UNIQUE
           
static boolean WITHOUT_VALUE
           
 
Constructor Summary
Option(Option other)
           
Option(java.lang.String name, int code, boolean needsValue, boolean isUnique, boolean nesessary, java.lang.String defaultValue)
           
Option(java.lang.String name, int code, boolean needsValue, boolean isUnique, boolean nesessary, java.lang.String defaultValue, java.lang.String description)
           
 
Method Summary
 java.lang.Object clone()
           
 int getCode()
           
 java.lang.String getDefaultValue()
           
 java.lang.String getDescription()
           
 java.lang.String getName()
           
 java.lang.String getValue()
           
 java.util.Collection getValues()
           
 boolean isNesessary()
           
 boolean isUnique()
           
 boolean needsValue()
           
 void setDescription(java.lang.String d)
           
 void setValue(java.lang.String value)
           
 java.lang.String toString()
           
 boolean valueIsSet()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNIQUE

public static final boolean UNIQUE

MULTIPLE

public static final boolean MULTIPLE

NEEDS_VALUE

public static final boolean NEEDS_VALUE

WITHOUT_VALUE

public static final boolean WITHOUT_VALUE

NESESSARY

public static final boolean NESESSARY

NOT_NESESSARY

public static final boolean NOT_NESESSARY
Constructor Detail

Option

public Option(java.lang.String name,
              int code,
              boolean needsValue,
              boolean isUnique,
              boolean nesessary,
              java.lang.String defaultValue)

Option

public Option(java.lang.String name,
              int code,
              boolean needsValue,
              boolean isUnique,
              boolean nesessary,
              java.lang.String defaultValue,
              java.lang.String description)

Option

public Option(Option other)
Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

getName

public java.lang.String getName()

getCode

public int getCode()

isUnique

public boolean isUnique()

needsValue

public boolean needsValue()

setValue

public void setValue(java.lang.String value)

getValue

public java.lang.String getValue()

getValues

public java.util.Collection getValues()

valueIsSet

public boolean valueIsSet()

isNesessary

public boolean isNesessary()

setDescription

public void setDescription(java.lang.String d)

getDescription

public java.lang.String getDescription()

getDefaultValue

public java.lang.String getDefaultValue()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object