it.polito.elite.doseWS.include
Class Synset

java.lang.Object
  extended byit.polito.elite.doseWS.include.Synset

public class Synset
extends java.lang.Object

A class for representing synsets associated to ontology concepts

Since:
11/2004
Version:
1.0
Author:
Dario Bonino Alessio Bosca Federico Pescarmona Michele Debandi
See Also:
SynsetTest class for a testing class

Constructor Summary
Synset(java.lang.String conceptURI, MWord[] mwords, java.lang.String language)
          Constructor
 
Method Summary
 java.lang.String getConcept()
           
 java.lang.String getLanguage()
           
 MWord[] getMWords()
           
 java.lang.String serialize()
          Serializes the synset according to a predefined XML format
 void setMWords(MWord[] mwords)
          sets the mwords for this synset
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Synset

public Synset(java.lang.String conceptURI,
              MWord[] mwords,
              java.lang.String language)
Constructor

Parameters:
conceptURI - the URI of the concept to which this synset is associated
mwords - the mwords composing the synset
Method Detail

getMWords

public MWord[] getMWords()
Returns:
return the mword objects composing this synset

setMWords

public void setMWords(MWord[] mwords)
sets the mwords for this synset

Parameters:
mwords - the mword objects to be included in this synset (substitute the ones already stored)

getConcept

public java.lang.String getConcept()
Returns:
the concept to which this synset is related

getLanguage

public java.lang.String getLanguage()
Returns:
the language of this synset

serialize

public java.lang.String serialize()
Serializes the synset according to a predefined XML format

Returns:
the XML serialization of this synset object