Class GenerationOption


  • public class GenerationOption
    extends java.lang.Object
    An option used by the generator to enable or disable some generation features. For example generation of rmi or inmemory services is triggered by generation options.
    Version:
    $Id: $Id
    Author:
    another
    • Constructor Summary

      Constructors 
      Constructor Description
      GenerationOption()
      Creates a new GenerationOption with empty name and value.
      GenerationOption​(java.lang.String aName, java.lang.String aValue)
      Creates a new GenerationOption.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()
      Getter for the field name.
      java.lang.String getValue()
      Getter for the field value.
      boolean isFalse()
      Returns isSet && !true.
      boolean isSet()
      Returns true if a value is set.
      boolean isTrue()
      Returns true if the options value is equal to 'true'.
      void setName​(java.lang.String name)
      Setter for the field name.
      void setValue​(java.lang.String value)
      Setter for the field value.
      java.lang.String toString()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • GenerationOption

        public GenerationOption​(java.lang.String aName,
                                java.lang.String aValue)
        Creates a new GenerationOption.
        Parameters:
        aName - a String object.
        aValue - a String object.
      • GenerationOption

        public GenerationOption()
        Creates a new GenerationOption with empty name and value.
    • Method Detail

      • toString

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

        public java.lang.String getName()

        Getter for the field name.

        Returns:
        a String object.
      • setName

        public void setName​(java.lang.String name)

        Setter for the field name.

        Parameters:
        name - a String object.
      • getValue

        public java.lang.String getValue()

        Getter for the field value.

        Returns:
        a String object.
      • setValue

        public void setValue​(java.lang.String value)

        Setter for the field value.

        Parameters:
        value - a String object.
      • isTrue

        public boolean isTrue()
        Returns true if the options value is equal to 'true'.
        Returns:
        a boolean.
      • isFalse

        public boolean isFalse()
        Returns isSet && !true.
        Returns:
        a boolean.
      • isSet

        public boolean isSet()
        Returns true if a value is set.
        Returns:
        a boolean.