edu.columbia.surge
Interface PersonalPronounFactory
- All Known Implementing Classes:
- PersonalPronounFactoryH
- public abstract interface 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.
- See Also:
PersonalPronoun
Method Summary |
PersonalPronoun |
create()
A factory method which creates a default instance of
PersonalPronoun. |
PersonalPronoun |
create(java.lang.String person)
A factory method which computes and returns an instance of
PersonalPronoun 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
PersonalPronoun. |
factory
public static final PersonalPronounFactory factory
- The static instance which helps users to access to the methods in
this class.
create
public PersonalPronoun create()
- A factory method which creates a default instance of
PersonalPronoun.
- Returns:
- a default instance of PersonalPronoun
create
public PersonalPronoun create(java.lang.String person)
throws InvalidConstructorException
- A factory method which computes and returns an instance of
PersonalPronoun with the given specification of the whether
the FD is in first, second or third person.
- 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 PersonalPronoun 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
PersonalPronoun.
- Parameters:
person
- specify whether the personal-pronoun should be
first, second or third person. Can use the static constants as
parameters, example: PersonalPronoun.SECONDplurality
- 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 PersonalPronoun with the given
parameters