|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnz.ac.waikato.mcennis.rat.AbstractFactory<Parser>
nz.ac.waikato.mcennis.rat.parser.ParserFactory
public class ParserFactory
Class for creating Parsers
| Field Summary | |
|---|---|
static boolean |
isInitialized
|
| Fields inherited from class nz.ac.waikato.mcennis.rat.AbstractFactory |
|---|
map, properties |
| Constructor Summary | |
|---|---|
protected |
ParserFactory()
|
| Method Summary | |
|---|---|
boolean |
check(Properties parameters)
Verify, without modifying the underlying property lists, that the given Properties object can be merged with this factory, satisfying all constraints. |
Parser |
create(Properties props)
Create the given object using the settings in the Properties object. |
Parser |
create(java.lang.String name)
Return the parser with the given name. |
Parser |
create(java.lang.String classType,
Properties parameters)
Return the parser with the given name, configured with the given parameterds. |
Parameter |
getClassParameter()
Return the parameter containing the name of the default type produced by this object. |
Properties |
getParameter()
Get all parameters associated with this object. |
static void |
initialization()
|
static ParserFactory |
newInstance()
Create a new reference to the ParserFactory singelton |
| Methods inherited from class nz.ac.waikato.mcennis.rat.AbstractFactory |
|---|
addDefaultProperty, addType, check, getKnownTypes, getParameter, setDefaultProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static boolean isInitialized
| Constructor Detail |
|---|
protected ParserFactory()
| Method Detail |
|---|
public static ParserFactory newInstance()
public static void initialization()
public Parser create(Properties props)
AbstractFactory
create in class AbstractFactory<Parser>props - parameters used to control the factory.
public Parser create(java.lang.String name)
name -
public Parser create(java.lang.String classType,
Properties parameters)
classType - name of the parser to createparameters - parameters for this new parser
public boolean check(Properties parameters)
AbstractFactory
check in class AbstractFactory<Parser>parameters - Properties object that might be merged in
public Properties getParameter()
AbstractFactory
getParameter in class AbstractFactory<Parser>public Parameter getClassParameter()
AbstractFactory
getClassParameter in class AbstractFactory<Parser>
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||