edu.columbia.surge
Interface CommonFactory
- All Known Implementing Classes:
- CommonFactoryH
- public abstract interface CommonFactory
This class holds the factory methods for the Common class. Users can
use this class to create instances of Common objects with their
desired parameters.
- See Also:
Common
Field Summary |
static CommonFactory |
factory
The static instance which helps users to access to the methods in
this class. |
Method Summary |
Common |
create()
A factory method which creates an instance of Common without any
given parameters. |
Common |
create(java.lang.String lex)
A factory method which creates an instance of Common with the
given lexical entry. |
Common |
create(java.lang.String lex,
boolean definite)
A factory method which creates an instance of Common with the
given lexical entry and a boolean to specify whether the lex
should be definite. |
factory
public static final CommonFactory factory
- The static instance which helps users to access to the methods in
this class.
create
public Common create()
- A factory method which creates an instance of Common without any
given parameters.
create
public Common create(java.lang.String lex)
throws InvalidConstructorException
- A factory method which creates an instance of Common with the
given lexical entry. If the lexical entry is invalid, an
InvalidConstructorException should be thrown.
- Parameters:
lex
- lexical entry
create
public Common create(java.lang.String lex,
boolean definite)
throws InvalidConstructorException
- A factory method which creates an instance of Common with the
given lexical entry and a boolean to specify whether the lex
should be definite. If the lexical entry is invalid, an
InvalidConstructorException should be thrown.
- Parameters:
lex
- lexical entrydefinite
- set whether the lex should be definite. Input
true to be definite.