ch.uzh.ifi.attempto.acewiki.core
Class DummyOntologyElement

java.lang.Object
  extended by ch.uzh.ifi.attempto.acewiki.core.AbstractOntologyElement
      extended by ch.uzh.ifi.attempto.acewiki.core.DummyOntologyElement
All Implemented Interfaces:
OntologyElement

public class DummyOntologyElement
extends AbstractOntologyElement

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.

Author:
Tobias Kuhn

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

DummyOntologyElement

public DummyOntologyElement(java.lang.String type,
                            java.lang.String text)
Creates a new dummy ontology element.

Parameters:
type - The type of the dummy ontology element.
text - The text of the dummy ontology element.
Method Detail

getWords

public java.lang.String[] getWords()
Description copied from interface: OntologyElement
Returns an array of all word forms.

Returns:
An array containing all word forms.

getWord

public java.lang.String getWord()
Description copied from interface: OntologyElement
Returns the main word form.

Specified by:
getWord in interface OntologyElement
Overrides:
getWord in class AbstractOntologyElement
Returns:
The word form.

getHeadwords

public java.lang.String[] getHeadwords()
Description copied from interface: OntologyElement
Returns the headwords that are used in the GUI (title, index, etc) to refer to this ontology element. At least one headword is required.

Specified by:
getHeadwords in interface OntologyElement
Overrides:
getHeadwords in class AbstractOntologyElement
Returns:
The headwords.

setWords

public void setWords(java.lang.String serializedWords)
Description copied from interface: OntologyElement
Sets the word forms.

Parameters:
serializedWords - The serialized word forms to be set.

serializeWords

public java.lang.String serializeWords()
Description copied from interface: OntologyElement
Returns the word forms of this ontology element in a serialized form.

Returns:
The serialized word forms.

getType

public java.lang.String getType()
Description copied from interface: OntologyElement
Returns the word type as it is shown to the user.

Returns:
The word type.

getInternalType

public java.lang.String getInternalType()
Description copied from interface: OntologyElement
Returns the word type as it is used internally.

Returns:
The internal word type.


Copyright 2008-2012, AceWiki developers