|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.uzh.ifi.attempto.acewiki.core.AbstractOntologyElement
ch.uzh.ifi.attempto.acewiki.core.DummyOntologyElement
public class DummyOntologyElement
This class represents a "dummy" ontology element, which cannot be part of ontological statements but represents an article. This class is at the moment only used for the main page, which does not represent a specific word (i.e. ontological entity) but is otherwise a normal article.
| Constructor Summary | |
|---|---|
DummyOntologyElement(java.lang.String type,
java.lang.String text)
Creates a new dummy ontology element. |
|
| Method Summary | |
|---|---|
java.lang.String[] |
getHeadwords()
Returns the headwords that are used in the GUI (title, index, etc) to refer to this ontology element. |
java.lang.String |
getInternalType()
Returns the word type as it is used internally. |
java.lang.String |
getType()
Returns the word type as it is shown to the user. |
java.lang.String |
getWord()
Returns the main word form. |
java.lang.String[] |
getWords()
Returns an array of all word forms. |
java.lang.String |
serializeWords()
Returns the word forms of this ontology element in a serialized form. |
void |
setWords(java.lang.String serializedWords)
Sets the word forms. |
| Methods inherited from class ch.uzh.ifi.attempto.acewiki.core.AbstractOntologyElement |
|---|
getArticle, getId, getOntology, getWord, initArticle, initId, initOntology, log, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DummyOntologyElement(java.lang.String type,
java.lang.String text)
type - The type of the dummy ontology element.text - The text of the dummy ontology element.| Method Detail |
|---|
public java.lang.String[] getWords()
OntologyElement
public java.lang.String getWord()
OntologyElement
getWord in interface OntologyElementgetWord in class AbstractOntologyElementpublic java.lang.String[] getHeadwords()
OntologyElement
getHeadwords in interface OntologyElementgetHeadwords in class AbstractOntologyElementpublic void setWords(java.lang.String serializedWords)
OntologyElement
serializedWords - The serialized word forms to be set.public java.lang.String serializeWords()
OntologyElement
public java.lang.String getType()
OntologyElement
public java.lang.String getInternalType()
OntologyElement
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||