|
|||||||||
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.AbstractOntologyElement
public abstract class AbstractOntologyElement
This is a partial implementation of an ontology element.
Constructor Summary | |
---|---|
AbstractOntologyElement()
|
Method Summary | |
---|---|
Article |
getArticle()
Returns the article of this ontology element. |
java.lang.String[] |
getHeadwords()
Returns the headwords that are used in the GUI (title, index, etc) to refer to this ontology element. |
long |
getId()
Returns the numerical id of this ontology element. |
Ontology |
getOntology()
Returns the ontology of this ontology element. |
java.lang.String |
getWord()
Returns the main word form. |
java.lang.String |
getWord(int n)
Returns the word form for the given word form id. |
void |
initArticle(Article article)
Initializes the article of this ontology element. |
void |
initId(long id)
Initializes the id of this ontology element. |
void |
initOntology(Ontology ontology)
Initializes the ontology of this ontology element. |
protected void |
log(java.lang.String text)
Writes the text to the log file. |
java.lang.String |
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.OntologyElement |
---|
getInternalType, getType, getWords, serializeWords, setWords |
Constructor Detail |
---|
public AbstractOntologyElement()
Method Detail |
---|
public void initId(long id)
OntologyElement
initId
in interface OntologyElement
id
- The id.public void initOntology(Ontology ontology)
OntologyElement
initOntology
in interface OntologyElement
ontology
- The ontology.public void initArticle(Article article)
OntologyElement
initArticle
in interface OntologyElement
article
- The article.public java.lang.String getWord(int n)
OntologyElement
getWord
in interface OntologyElement
n
- The word form id.
public java.lang.String getWord()
OntologyElement
getWord
in interface OntologyElement
public java.lang.String[] getHeadwords()
OntologyElement
getHeadwords
in interface OntologyElement
public long getId()
OntologyElement
getId
in interface OntologyElement
public Ontology getOntology()
OntologyElement
getOntology
in interface OntologyElement
public Article getArticle()
OntologyElement
getArticle
in interface OntologyElement
protected void log(java.lang.String text)
text
- The text to be written to the log file.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |