|
|||||||||
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.Article
public class Article
This class represents a wiki article.
Constructor Summary | |
---|---|
protected |
Article(OntologyElement element)
Creates a new article for the given ontology element. |
Method Summary | |
---|---|
void |
add(Statement followingStatement,
java.util.List<Statement> newStatements)
Adds one or more new statements to the article. |
void |
add(Statement followingStatement,
Statement newStatement)
Adds one new statement to the article. |
void |
edit(Statement oldStatement,
java.util.List<Statement> newStatements)
Edits a statement of the article. |
void |
edit(Statement oldStatement,
Statement newStatement)
Edits a statement of the article. |
Ontology |
getOntology()
Returns the ontology object. |
OntologyElement |
getOntologyElement()
Returns the ontology element of this article. |
java.util.List<Sentence> |
getSentences()
Returns the ACE sentences of the article text. |
java.util.List<Statement> |
getStatements()
Returns the article text as a list of statements. |
protected void |
log(java.lang.String text)
Writes the text to the log file. |
void |
remove(Statement statement)
Removes the given statement from the article. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Article(OntologyElement element)
element
- The ontology element.Method Detail |
---|
public OntologyElement getOntologyElement()
public Ontology getOntology()
public java.util.List<Statement> getStatements()
public java.util.List<Sentence> getSentences()
public void edit(Statement oldStatement, Statement newStatement)
oldStatement
- The statement that should be edited.newStatement
- The new statement.public void edit(Statement oldStatement, java.util.List<Statement> newStatements)
oldStatement
- The statement that should be edited.newStatements
- The new statements.public void add(Statement followingStatement, Statement newStatement)
followingStatement
- The statement in front of which the new statement should be added,
or null if the statement should be added to the end of the article.newStatement
- The new statement to be added.public void add(Statement followingStatement, java.util.List<Statement> newStatements)
followingStatement
- The statement in front of which the new statements should be
added, or null if the statements should be added to the end of the article.newStatements
- The new statements to be added.public void remove(Statement statement)
statement
- The statement to be removed.protected void log(java.lang.String text)
text
- The text to be written to the log file.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |