|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--notio.translators.LFParser
A LF Parser class.
Constructor Summary | |
LFParser()
|
Method Summary | |
boolean |
getCreateTypesOnDemand()
This method may be used to check whether the parser will create type objects for any parsed type labels not currently in the database, or throw an exception. |
java.lang.Class |
getUnitClass()
Returns the unit object parsed from the input stream. |
void |
initializeParser(java.io.Reader reader,
KnowledgeBase kBase,
TranslationContext tContext)
Initializes the parser to parse the specified reader. |
Actor |
parseActor()
Attempts to parse an actor from the input stream. |
java.util.Vector |
parseCGStream()
Attempts to parse a CGStream from the input stream. |
Concept |
parseConcept()
Attempts to parse a concept from the input stream. |
Graph |
parseGraph()
Attempts to parse a graph from the input stream. |
Graph |
parseOutermostContext()
Attempts to parse a graph from the input stream. |
Relation |
parseRelation()
Attempts to parse a relation from the input stream. |
java.lang.Object |
parseUnit()
Attempts to parse the default unit from the input stream. |
void |
setCreateTypesOnDemand(boolean flag)
This method may be used to tell the parser whether it should create type objects for any parsed type labels not currently in the database, or throw an exception. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LFParser()
Method Detail |
public void initializeParser(java.io.Reader reader, KnowledgeBase kBase, TranslationContext tContext) throws ParserException
initializeParser
in interface Parser
reader
- the reader whose contents are to be parsed.kBase
- the knowledge base to be used while parsing.tContext
- the translation context to be used while parsing.ParserException
- if an error occurs while initializing
the parser.public java.lang.Class getUnitClass()
getUnitClass
in interface Parser
public java.lang.Object parseUnit() throws ParserException
parseUnit
in interface Parser
ParserException
- if an error occurs while parsing.public java.util.Vector parseCGStream() throws ParserException
parseCGStream
in interface Parser
ParserException
- if an error occurs while parsing.public Graph parseOutermostContext() throws ParserException
parseOutermostContext
in interface Parser
ParserException
- if an error occurs while parsing.public Graph parseGraph() throws ParserException
parseGraph
in interface Parser
ParserException
- if an error occurs while parsing.public Concept parseConcept() throws ParserException
parseConcept
in interface Parser
ParserException
- if an error occurs while parsing.public Relation parseRelation() throws ParserException
parseRelation
in interface Parser
ParserException
- if an error occurs while parsing.public Actor parseActor() throws ParserException
parseActor
in interface Parser
ParserException
- if an error occurs while parsing.public void setCreateTypesOnDemand(boolean flag)
flag
- true or false to turn automatic creation on or off.public boolean getCreateTypesOnDemand()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |