|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.uzh.ifi.attempto.acewiki.core.AbstractStatement
ch.uzh.ifi.attempto.acewiki.core.AbstractSentence
ch.uzh.ifi.attempto.acewiki.gf.GFDeclaration
public class GFDeclaration
This class represents a declaration statement for the GF AceWiki engine.
| Constructor Summary | |
|---|---|
GFDeclaration(org.grammaticalframework.parser.ParseState parseState,
GFGrammar gfGrammar)
Creates a new GF declaration object from a parse state. |
|
GFDeclaration(java.lang.String text,
java.lang.String language,
GFGrammar gfGrammar)
Creates a new GF declaration object from a text in a given language. |
|
| Method Summary | |
|---|---|
boolean |
contains(OntologyElement e)
Checks whether the sentence contains the given ontology element (no matter which word form). |
java.util.List<SentenceDetail> |
getDetails(java.lang.String language)
Returns a list of sentence details in the given language. |
GFGrammar |
getGFGrammar()
Returns the grammar object. |
protected TextContainer |
getTextContainer(java.lang.String language)
Returns a text container with the text of this sentence in the given language. |
java.util.List<TextElement> |
getTextElements(java.lang.String language)
Returns a list of text elements that represent the tokens of this sentence in the given language. |
boolean |
isReasonable()
Returns true if this sentence can participate in reasoning. |
java.lang.String |
serialize()
Returns a serialization of the statement. |
void |
update()
This method is called whenever some words of the sentence are modified. |
| Methods inherited from class ch.uzh.ifi.attempto.acewiki.core.AbstractSentence |
|---|
getText, isImmutable, isIntegrated, setIntegrated |
| Methods inherited from class ch.uzh.ifi.attempto.acewiki.core.AbstractStatement |
|---|
getArticle, getDefaultLanguage, getEngine, getLanguageHandler, getOntology, getTextOperator, init, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ch.uzh.ifi.attempto.acewiki.core.Sentence |
|---|
isImmutable, isIntegrated, setIntegrated |
| Methods inherited from interface ch.uzh.ifi.attempto.acewiki.core.Statement |
|---|
getArticle, getOntology, getText, init |
| Constructor Detail |
|---|
public GFDeclaration(org.grammaticalframework.parser.ParseState parseState,
GFGrammar gfGrammar)
parseState - The parse state.gfGrammar - The grammar object.
public GFDeclaration(java.lang.String text,
java.lang.String language,
GFGrammar gfGrammar)
text - The declaration text.language - The language.gfGrammar - The grammar object.| Method Detail |
|---|
protected TextContainer getTextContainer(java.lang.String language)
AbstractSentence
getTextContainer in class AbstractSentencelanguage - The language.
public java.util.List<TextElement> getTextElements(java.lang.String language)
Sentence
getTextElements in interface Sentencelanguage - The language.
public boolean contains(OntologyElement e)
Sentence
contains in interface Sentencee - The ontology element.
public java.util.List<SentenceDetail> getDetails(java.lang.String language)
Sentence
getDetails in interface Sentencelanguage - The language.
public boolean isReasonable()
Sentence
isReasonable in interface Sentencepublic void update()
Sentence
update in interface Sentencepublic java.lang.String serialize()
Statement
serialize in interface Statementpublic GFGrammar getGFGrammar()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||