it.unimo.dbgroup.momis.annotationOntology
Class OntologyMeaning

java.lang.Object
  extended byit.unimo.dbgroup.momis.annotationOntology.OntologyMeaning

public class OntologyMeaning
extends java.lang.Object

OntologyMeaning Class is a class that contains the all the information of the synset in the original WordNet (the gloss and also the lemmas). This class can show the whole synset structure and is used, in particular, into the SlimNodeSenseDialog class of the SLIM package.


Field Summary
private  java.util.Vector _lemmas
           
private  int _senseNumber
           
private  OntologySynset _synset
           
private  int _syntacticCategory
           
 
Constructor Summary
OntologyMeaning()
           
OntologyMeaning(OntologySynset synset, java.util.Vector lemmas)
          Constructor that sets the principal parameters of this class
 
Method Summary
 void addLemma(OntologyLemma lemma)
          add a lemma to the lemmas Vector
 java.lang.String getGloss()
          returns the synset gloss
 java.util.Vector getLemmas()
          get the lemmas vector
 int getSenseNumber()
          get the sense number
 int getSyntacticCategory()
          returns the synset syntactic Category
 void setLemmas(java.util.Vector lemmas)
          set the lemmas vector
 void setSenseNumber(int senseNumber)
          set the sense number
 void setSynset(OntologySynset synset)
          sets the synset
 java.lang.String toString()
          toString method retorn a string representation of the meaning.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_synset

private OntologySynset _synset

_lemmas

private java.util.Vector _lemmas

_syntacticCategory

private int _syntacticCategory

_senseNumber

private int _senseNumber
Constructor Detail

OntologyMeaning

public OntologyMeaning()

OntologyMeaning

public OntologyMeaning(OntologySynset synset,
                       java.util.Vector lemmas)
Constructor that sets the principal parameters of this class

Parameters:
synset - the synset
lemmas - this vector contains all the lemmas associated to the synset
Method Detail

getGloss

public java.lang.String getGloss()
returns the synset gloss

Returns:
the synset gloss

getSyntacticCategory

public int getSyntacticCategory()
returns the synset syntactic Category

Returns:
the synset syntactic Category

getLemmas

public java.util.Vector getLemmas()
get the lemmas vector

Returns:
Vector: the lemmas Vector

setLemmas

public void setLemmas(java.util.Vector lemmas)
set the lemmas vector


getSenseNumber

public int getSenseNumber()
get the sense number

Returns:
int: the sense number

setSenseNumber

public void setSenseNumber(int senseNumber)
set the sense number


setSynset

public void setSynset(OntologySynset synset)
sets the synset


addLemma

public void addLemma(OntologyLemma lemma)
add a lemma to the lemmas Vector


toString

public java.lang.String toString()
toString method retorn a string representation of the meaning. This representation is in the form of: lemma1, lemma2, ...lemma N| gloss.

Returns:
String: the string representation


Universita' di Modena e Reggio Emilia