|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.mit.jwi.data.parse.SenseLineParser
public class SenseLineParser
Parser for Wordnet sense index files (e.g., index.sense or
sense.index). It produces an ISenseEntry 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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface edu.mit.jwi.data.parse.ILineParser |
|---|
ILineParser.MisformattedLineException |
| Field Summary | |
|---|---|
protected ILineParser<ISenseKey> |
keyParser
|
| Constructor Summary | |
|---|---|
protected |
SenseLineParser()
This constructor is marked protected so that the class may be sub-classed, but not directly instantiated. |
protected |
SenseLineParser(ILineParser<ISenseKey> keyParser)
This constructor is marked protected so that the class may be sub-classed, but not directly instantiated. |
| Method Summary | |
|---|---|
static SenseLineParser |
getInstance()
Returns the singleton instance of this class, instantiating it if necessary. |
ISenseEntry |
parseLine(java.lang.String line)
Given the line of data, this method produces an object of class T. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final ILineParser<ISenseKey> keyParser
| Constructor Detail |
|---|
protected SenseLineParser()
getInstance() method.
protected SenseLineParser(ILineParser<ISenseKey> keyParser)
getInstance() method.
keyParser - the sense key parser this sense line parser should use
java.lang.NullPointerException - if the specified key parser is null| Method Detail |
|---|
public static SenseLineParser getInstance()
null.
null singleton instance of this class,
instantiating it if necessary.public ISenseEntry parseLine(java.lang.String line)
ILineParserT.
parseLine in interface ILineParser<ISenseEntry>line - the line to be parsed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||