ch.uzh.ifi.attempto.acewiki.core.ontology
Class TrAdjRole

java.lang.Object
  extended by ch.uzh.ifi.attempto.acewiki.core.ontology.OntologyElement
      extended by ch.uzh.ifi.attempto.acewiki.core.ontology.Role
          extended by ch.uzh.ifi.attempto.acewiki.core.ontology.TrAdjRole
All Implemented Interfaces:
java.lang.Comparable<OntologyElement>

public class TrAdjRole
extends Role

This class stands for roles that are represented by transitive adjectives. Transitive adjectives consist of an adjective plus a preposition that is connected to the adjective by a hyphen "-" or an underscore "_". Underscores are replaced by blanks in the case of pretty-printing. Transitive adjectives have just one word form.

0: word form consisting of an adjective plus a preposition.

Examples: "located-in"; "used_for".

Author:
Tobias Kuhn

Constructor Summary
TrAdjRole()
          Creates a new role that is represented by a transitive adjective.
 
Method Summary
protected  void changeWords(java.lang.String... words)
          Changes the word forms without updating the ontology indexes.
 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[] getWords()
          Returns the word forms.
 
Methods inherited from class ch.uzh.ifi.attempto.acewiki.core.ontology.OntologyElement
add, compareTo, edit, getHeadword, getOntology, getPrettyWord, getSentences, getURI, getURISuffix, getWord, getWord, log, registerAt, remove, setWords, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TrAdjRole

public TrAdjRole()
Creates a new role that is represented by a transitive adjective.

Method Detail

getWords

public java.lang.String[] getWords()
Description copied from class: OntologyElement
Returns the word forms. The position in the array corresponds to the word form id.

Specified by:
getWords in class OntologyElement
Returns:
An array containing the word forms.

changeWords

protected void changeWords(java.lang.String... words)
Description copied from class: OntologyElement
Changes the word forms without updating the ontology indexes. The order reflects the word form ids.

Specified by:
changeWords in class OntologyElement
Parameters:
words - The word forms.

getType

public java.lang.String getType()
Description copied from class: OntologyElement
Returns the word type as it is shown to the user. Newer versions of AceWiki can savely change this value.

Specified by:
getType in class OntologyElement
Returns:
The word type.

getInternalType

public java.lang.String getInternalType()
Description copied from class: OntologyElement
Returns the word type as it is used internally. Changing this value in newer versions of AceWiki breaks backwards compatibility for loading ontologies.

Specified by:
getInternalType in class OntologyElement
Returns:
The internal word type.


Copyright 2008, Attempto Group, University of Zurich (see http://attempto.ifi.uzh.ch)