edu.columbia.surge.hashImpl
Class PersonalPronounFactoryH

java.lang.Object
  |
  +--edu.columbia.surge.hashImpl.PersonalPronounFactoryH

public class PersonalPronounFactoryH
extends java.lang.Object
implements PersonalPronounFactory

This class holds the factory methods for the PersonalPronoun class. Users can use this class to create instances of PersonalPronoun objects with their desired parameters. A static keyword is used to instantiate an instance of PersonalPronounFactoryH so that the static variable "factory" in this class will have access to the create methods. Users can also create instances of PersonalPronounH directly using the constructors of the PersonalPronoun class. The primary reason of the creation of this class is to allow the PersonalPronoun class, which implements the PersonalPronoun interface to have constructors while being able to implement all the methods in the interface.

See Also:
PersonalPronounH

Field Summary
static PersonalPronounFactoryH factory
          The static instance which helps users to access to the methods in this class.
 
Method Summary
 PersonalPronoun create()
          A factory method which creates a default instance of PersonalPronounH.
 PersonalPronoun create(java.lang.String person)
          A factory method which computes and returns an instance of PersonalPronounH with the given specification of the whether the FD is in first, second or third person.
 PersonalPronoun create(java.lang.String person, boolean plurality, java.lang.String gender)
          A factory method which computes and returns an instance of PersonalPronounH.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factory

public static PersonalPronounFactoryH factory
The static instance which helps users to access to the methods in this class.
Method Detail

create

public PersonalPronoun create()
A factory method which creates a default instance of PersonalPronounH.
Specified by:
create in interface PersonalPronounFactory
Returns:
a default instance of PersonalPronounH

create

public PersonalPronoun create(java.lang.String person)
                       throws InvalidConstructorException
A factory method which computes and returns an instance of PersonalPronounH with the given specification of the whether the FD is in first, second or third person.
Specified by:
create in interface PersonalPronounFactory
Parameters:
person - specify whether the personal-pronoun should be first, second or third person. Can use the static constants as parameters, example: PersonalPronoun.SECOND
Returns:
an instance of PersonalPronounH with the given parameters

create

public PersonalPronoun create(java.lang.String person,
                              boolean plurality,
                              java.lang.String gender)
                       throws InvalidConstructorException
A factory method which computes and returns an instance of PersonalPronounH.
Specified by:
create in interface PersonalPronounFactory
Parameters:
person - specify whether the personal-pronoun should be first, second or third person. Can use the static constants as parameters, example: PersonalPronoun.SECOND
plurality - specify whether the personal-pronoun should be plural or singular.
gender - specify the gender of the personal-pronoun, can use the static constants in this class (example: PersonalPronoun.NEUTRAL) to feed in as parameters
Returns:
an instance of PersonalPronounH with the given parameters