public class ExceptionLineParser extends Object implements ILineParser<IExceptionEntryProxy>
Parser for Wordnet exception files (e.g., exc.adv or
adv.exc). This parser produces IExceptionEntryProxy
objects instead of IExceptionEntry objects directly because the
exception files do not contain information about part of speech. This needs
to be added by the governing object to create a full-fledged
IExceptionEntry object.
This class follows a singleton design pattern, and is not intended to be
instantiated directly; rather, call the getInstance() method to get
the singleton instance.
ILineParser.MisformattedLineException| Modifier | Constructor and Description |
|---|---|
protected |
ExceptionLineParser()
This constructor is marked protected so that the class may be
sub-classed, but not directly instantiated.
|
| Modifier and Type | Method and Description |
|---|---|
static ExceptionLineParser |
getInstance()
Returns the singleton instance of this class, instantiating it if
necessary.
|
IExceptionEntryProxy |
parseLine(String line)
Given the line of data, this method produces an object of class
T. |
protected ExceptionLineParser()
getInstance() method.public static ExceptionLineParser getInstance()
null.null singleton instance of this class,
instantiating it if necessary.public IExceptionEntryProxy parseLine(String line)
ILineParserT.parseLine in interface ILineParser<IExceptionEntryProxy>line - the line to be parsedCopyright © 2018. All rights reserved.