Class GenerationOptions


  • public class GenerationOptions
    extends java.lang.Object
    Options for the generator.
    Version:
    $Id: $Id
    Author:
    another
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String FIXTURE
      Name of the fixture option.
      static java.lang.String INMEMORY
      Name of the inmemory option.
      static java.lang.String JDBCCONFIG
      Name of the JDBCConfig option.
      static java.lang.String RMI
      Name of the rmi enabling option.
    • Constructor Summary

      Constructors 
      Constructor Description
      GenerationOptions()
      Constructor for GenerationOptions.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      GenerationOption get​(java.lang.String key)
      Returns the option stored und the given key.
      boolean isEnabled​(java.lang.String key)
      Returns true if the option exists and is equal "true".
      void set​(java.lang.String key, java.lang.String value)
      Sets an option with given key and value.
      void set​(GenerationOption option)
      Sets the option.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • RMI

        public static final java.lang.String RMI
        Name of the rmi enabling option.
        See Also:
        Constant Field Values
      • INMEMORY

        public static final java.lang.String INMEMORY
        Name of the inmemory option.
        See Also:
        Constant Field Values
      • FIXTURE

        public static final java.lang.String FIXTURE
        Name of the fixture option.
        See Also:
        Constant Field Values
      • JDBCCONFIG

        public static final java.lang.String JDBCCONFIG
        Name of the JDBCConfig option.
        See Also:
        Constant Field Values
    • Constructor Detail

      • GenerationOptions

        public GenerationOptions()

        Constructor for GenerationOptions.

    • Method Detail

      • get

        public GenerationOption get​(java.lang.String key)
        Returns the option stored und the given key.
        Parameters:
        key - a String object.
        Returns:
        a GenerationOption object.
      • isEnabled

        public boolean isEnabled​(java.lang.String key)
        Returns true if the option exists and is equal "true".
        Parameters:
        key - a String object.
        Returns:
        a boolean.
      • set

        public void set​(java.lang.String key,
                        java.lang.String value)
        Sets an option with given key and value.
        Parameters:
        key - a String object.
        value - a String object.