qflib 0.98.0

de.qfs.lib.option
Class NestedOption

java.lang.Object
  |
  +--java.util.Observable
        |
        +--de.qfs.lib.option.Option
              |
              +--de.qfs.lib.option.NestedOption
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class NestedOption
extends Option

A NestedOption's value is an OptionSet. This makes is possible to build tree hierarchies of Options and OptionSets.

Version:
$Revision: 1.6 $
Author:
Gregor Schmid
See Also:
Serialized Form

Constructor Summary
NestedOption()
          Create a new NestedOption.
NestedOption(java.lang.String name, OptionSet value)
          Create a new NestedOption with a name and a value.
 
Method Summary
 boolean equals(java.lang.Object object)
          Two NestedOptions are considered equal if their names and values are equal.
 
Methods inherited from class de.qfs.lib.option.Option
addResources, addValidator, checkValue, clone, getName, getResources, getValue, hashCode, isNullOK, removeValidator, setName, setNullOK, setResources, setValue, toString
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NestedOption

public NestedOption()
Create a new NestedOption.

NestedOption

public NestedOption(java.lang.String name,
                    OptionSet value)
Create a new NestedOption with a name and a value.
Parameters:
name - The name to use.
value - The value to use.
Method Detail

equals

public boolean equals(java.lang.Object object)
Two NestedOptions are considered equal if their names and values are equal.
Overrides:
equals in class Option
Parameters:
object - The object to compare to.
Returns:
True if objects are equal

qflib 0.98.0