|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.uzh.ifi.attempto.acewiki.core.StatementFactory
public class StatementFactory
This factory class is used to generate different kind of statements (declarations, questions and comments).
Method Summary | |
---|---|
Sentence |
createAssignmentSentence(Individual ind,
Concept conc)
Creates an assignment sentence. |
Comment |
createComment(java.lang.String text,
Article article)
Creates a new comment. |
Sentence |
createHierarchySentence(Concept subConc,
Concept superConc)
Creates a hierarchy sentence. |
Sentence |
createSentence(java.lang.String serialized,
Article article)
Creates a new sentence object with the given article. |
java.util.List<Sentence> |
extractSentences(LanguageHandler languageHandler,
TextContainer tc,
PredictiveParser parser,
Article article)
Extracts sentence objects out of a text container and/or a parser state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Comment createComment(java.lang.String text, Article article)
text
- The comment text.article
- The article.
public Sentence createSentence(java.lang.String serialized, Article article)
serialized
- The serialized representation of the sentence.article
- The article.
public java.util.List<Sentence> extractSentences(LanguageHandler languageHandler, TextContainer tc, PredictiveParser parser, Article article)
tc
- The text container.languageHandler
- The language handler.parser
- The parser object with the parsed text.article
- The article of the sentences.
public Sentence createAssignmentSentence(Individual ind, Concept conc)
ind
- The individual.conc
- The concept.
public Sentence createHierarchySentence(Concept subConc, Concept superConc)
subConc
- The sub-concept.superConc
- The super-concept.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |