com.redstarhackers.craftsman.util
Class OptionDefinition

java.lang.Object
  extended by com.redstarhackers.craftsman.util.OptionDefinition

public class OptionDefinition
extends java.lang.Object

TODO Class summary sentence. Class documentation.

Version:
$Revision: 93 $
Author:
$Author: kostya $

Constructor Summary
OptionDefinition()
           
 
Method Summary
 void addValue(OptionValueDefinition val)
          Add the an option to the options collection.
 boolean equals(java.lang.Object rhs)
           
 java.lang.String getName()
          Return the value of the name field.
 java.util.Set getValues()
          Return the value of the options field.
 java.util.Set getValueStrings()
           
 boolean isAllowMultiple()
          Return the value of the required field.
 boolean isRequired()
          Return the value of the required field.
 void setAllowMultiple(boolean val)
          Set the value of required.
 void setName(java.lang.String val)
          Set the value of name.
 void setRequired(boolean val)
          Set the value of required.
 void setValues(java.util.Set val)
          Set the value of options.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OptionDefinition

public OptionDefinition()
Method Detail

getName

public java.lang.String getName()
Return the value of the name field.

Returns:
the value of name

setName

public void setName(java.lang.String val)
Set the value of name.

Parameters:
val - the new value

isRequired

public boolean isRequired()
Return the value of the required field.

Returns:
the value of required

setRequired

public void setRequired(boolean val)
Set the value of required.

Parameters:
val - the new value

isAllowMultiple

public boolean isAllowMultiple()
Return the value of the required field.

Returns:
the value of required

setAllowMultiple

public void setAllowMultiple(boolean val)
Set the value of required.

Parameters:
val - the new value

getValues

public java.util.Set getValues()
Return the value of the options field.

Returns:
the value of options

setValues

public void setValues(java.util.Set val)
Set the value of options.

Parameters:
val - the new value

addValue

public void addValue(OptionValueDefinition val)
Add the an option to the options collection.

Parameters:
val - the new Options to add

getValueStrings

public java.util.Set getValueStrings()

toString

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

equals

public boolean equals(java.lang.Object rhs)
Overrides:
equals in class java.lang.Object