Class NameGenerator


  • public class NameGenerator
    extends java.lang.Object
    DOCUMENT ME!
    Version:
    1.0
    Author:
    Andreas
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void close()  
      static NameGenerator getInstance()
      Returns the generator
      java.lang.String getName()
      DOCUMENT-ME
      static void init​(java.util.Properties settings)
      Initializes the generator from settings
      boolean isActive()
      DOCUMENT-ME
      boolean isAvailable()
      Returns true, if there is a name generator configured and names are available.
      void load​(java.lang.String fileName)  
      static void quit()
      Closes the generator.
      void setEnabled​(boolean available)
      Enabled the name generator.
      protected void showMessage()  
      • Methods inherited from class java.lang.Object

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

      • init

        public static void init​(java.util.Properties settings)
        Initializes the generator from settings
        Throws:
        java.lang.NullPointerException - if settings==null
      • quit

        public static void quit()
        Closes the generator.
      • getInstance

        public static NameGenerator getInstance()
        Returns the generator
        Throws:
        java.lang.IllegalStateException - if instance hasn't been called before.
      • load

        public void load​(java.lang.String fileName)
      • close

        protected void close()
      • isActive

        public boolean isActive()
        DOCUMENT-ME
      • isAvailable

        public boolean isAvailable()
        Returns true, if there is a name generator configured and names are available.
      • setEnabled

        public void setEnabled​(boolean available)
        Enabled the name generator.
      • getName

        public java.lang.String getName()
        DOCUMENT-ME
      • showMessage

        protected void showMessage()