|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcn.plinguacore.parser.AbstractParserFactory
public abstract class AbstractParserFactory
This class is intended to be extended by InputParserFactory and OutputParserFactory
| Constructor Summary | |
|---|---|
AbstractParserFactory()
Creates a new AbstractParserFactory instance |
|
| Method Summary | |
|---|---|
IParser |
createInputParserThroughExtension(java.lang.String fileExtension)
Looks if there's any input format whose files correspond to the extension given and returns an input format which parses that format |
IParser |
createParser(java.lang.String formatName)
Creates a IParser instance according to the given format |
static IParsersInfo |
getParserInfo()
Return general information about available parsers |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractParserFactory()
| Method Detail |
|---|
public static final IParsersInfo getParserInfo()
public final IParser createParser(java.lang.String formatName)
throws PlinguaCoreException
className - the format name of the parser to create
PlinguaCoreException - if the format is not supported
public IParser createInputParserThroughExtension(java.lang.String fileExtension)
throws PlinguaCoreException
fileExtension - the extension which input format class name should be returned
PlinguaCoreException - if there's no recognized input parser for the extension given
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||