|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.tudarmstadt.ukp.jwktl.parser.entry.EntryFactory
public abstract class EntryFactory
Factory for WiktionaryEntry
s used by the parsers.
Constructor Summary | |
---|---|
EntryFactory()
|
Method Summary | |
---|---|
WiktionaryEntry |
createEntry(ParsingContext context)
Create a new WiktionaryEntry based on the current context. |
WiktionaryEntry |
findEntry(ParsingContext context)
Checks if the current page contains a WiktionaryEntry
matching for the current context (part of speech, language, etc.) |
abstract PartOfSpeech |
findPartOfSpeech(String name)
Converts the given string into a part of speech enum type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EntryFactory()
Method Detail |
---|
public WiktionaryEntry findEntry(ParsingContext context)
WiktionaryEntry
matching for the current context (part of speech, language, etc.)
and returns it. If no entry could be found, a new one is created
(using createEntry(ParsingContext)
).
public WiktionaryEntry createEntry(ParsingContext context)
WiktionaryEntry
based on the current context.
This method always creates a new entry. Use
findEntry(ParsingContext)
if you want to use existing
entries (which is usually the case).
public abstract PartOfSpeech findPartOfSpeech(String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |