/**
 *  EggyPeggy Class
 *
 * <p>
 *  An EggyPeggy object plays the word game Eggy-Peggy. Pass the original 
 *  string to the convert method, and it will return an Eggy-Peggy string,
 *  a string where all the vowels are preceded by the word 'egg'. You can
 *  change the default prefix word 'egg' to any word you like by calling
 *  the SetPrefixWord method.
 */
class EggyPeggy  //Step 1: Skeleton with Constructors
{
  
//--------------------------------
//    Data Members
//--------------------------------
    
    /**
     * The name of the file where an AddressBook is stored
     */
    private static final String DEFAULT_PREFIX = "egg";
   
    /**
     * The text to be added in front of all vowels
     */
    private String prefix;

//--------------------------------
//    Constructors
//--------------------------------
    
    /**
     * Default constructor. 
     */
    public EggyPeggy( )
    {
        this(DEFAULT_PREFIX);
    }
   
    /**
     * Constructs an EggyPeggy object with the replacement
     * prefix text is set to the parameter value.
     *
     * @param prefix the string to put in front of any vowel
     */
    public EggyPeggy( String prefix )
    {
        this.prefix = prefix;
    }


//-------------------------------------------------
//      Public Methods:
// 
//          String    covert          (   String     )
//          void      setPrefixWord   (   String     )
//------------------------------------------------
   
   /**
    * Converts an argument string to an Eggy-Peggy string.
    * Data member 'prefix' is the word placed in front of
    * all vowels in the original string.    
    *
    * @param originalSentence the original sentence before 
    *                         the conversion
    *
    * @return the converted sentence
    *
    */
    public String convert(String originalSentence)
    {
        String newString;
        
        System.out.println("Inside convert; prefix is " + prefix); //TEMP
  
        newString = "temp new string";
        
        return newString;
    }


   /**
    * Sets the prefix to the passed argument.
    *
    * @param prefix the new prefix
    *
    */
    public void setPrefixWord(String prefix)
    {
        System.out.println("Inside setPrefixWord"); //TEMP
    }

}
