Enhydra 5.1 API

org.enhydra.tool.codegen
Class OptionSet

java.lang.Object
  |
  +--org.enhydra.tool.codegen.OptionSet
Direct Known Subclasses:
ProjectOptionSet

public class OptionSet
extends java.lang.Object

An OptionSet is a utility class for working with GeneratorOptions


Field Summary
static java.util.ResourceBundle res
           
 
Constructor Summary
OptionSet()
          Create an empty option set.
 
Method Summary
 void add(GeneratorOption newOp)
          Add a new generator option.
 void delete(java.lang.String name)
          Remove the generator option that has the specified option name.
 GeneratorOption lookup(java.lang.String name)
          Get the generator option that has the specified option name.
 GeneratorOption[] toArray()
          Convert the option set into an array of individual GeneratorOption objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

res

public static java.util.ResourceBundle res
Constructor Detail

OptionSet

public OptionSet()
Create an empty option set.

Method Detail

lookup

public GeneratorOption lookup(java.lang.String name)
                       throws GeneratorException
Get the generator option that has the specified option name.

Throws:
GeneratorException - Thrown if the no GeneratorOption exists in the current set with the specified name.

delete

public void delete(java.lang.String name)
            throws GeneratorException
Remove the generator option that has the specified option name.

Throws:
GeneratorException - Thrown if the no GeneratorOption exists in the current set with the specified name.

add

public void add(GeneratorOption newOp)
         throws GeneratorException
Add a new generator option.

Throws:
GeneratorException - Thrown if the no GeneratorOption exists in the current set with the specified name.

toArray

public GeneratorOption[] toArray()
Convert the option set into an array of individual GeneratorOption objects.

Returns:
The options as an GeneratorOption array.

Enhydra 5.1 API